• Home
  • Raw
  • Download

Lines Matching refs:Py_buffer

90 .. c:type:: Py_buffer
96 block of the exporter. For example, with negative :c:member:`~Py_buffer.strides`
133 called on non-``NULL`` :c:member:`~Py_buffer.format` values.
136 :c:macro:`PyBUF_FORMAT` flag, :c:member:`~Py_buffer.format` will
137 be set to ``NULL``, but :c:member:`~Py_buffer.itemsize` still has
140 If :c:member:`~Py_buffer.shape` is present, the equality
142 can use :c:member:`~Py_buffer.itemsize` to navigate the buffer.
144 If :c:member:`~Py_buffer.shape` is ``NULL`` as a result of a :c:macro:`PyBUF_SIMPLE`
146 :c:member:`~Py_buffer.itemsize` and assume ``itemsize == 1``.
159 If it is ``0``, :c:member:`~Py_buffer.buf` points to a single item representing
160 a scalar. In this case, :c:member:`~Py_buffer.shape`, :c:member:`~Py_buffer.strides`
161 and :c:member:`~Py_buffer.suboffsets` MUST be ``NULL``.
169 An array of :c:type:`Py_ssize_t` of length :c:member:`~Py_buffer.ndim`
172 :c:member:`~Py_buffer.len`.
182 An array of :c:type:`Py_ssize_t` of length :c:member:`~Py_buffer.ndim`
194 An array of :c:type:`Py_ssize_t` of length :c:member:`~Py_buffer.ndim`.
228 All :c:data:`Py_buffer` fields are unambiguously defined by the request
234 with the correct values: :c:member:`~Py_buffer.obj`, :c:member:`~Py_buffer.buf`,
235 :c:member:`~Py_buffer.len`, :c:member:`~Py_buffer.itemsize`, :c:member:`~Py_buffer.ndim`.
243 Controls the :c:member:`~Py_buffer.readonly` field. If set, the exporter
250 Controls the :c:member:`~Py_buffer.format` field. If set, this field MUST
347 The logical structure of NumPy-style arrays is defined by :c:member:`~Py_buffer.itemsize`,
348 :c:member:`~Py_buffer.ndim`, :c:member:`~Py_buffer.shape` and :c:member:`~Py_buffer.strides`.
350 If ``ndim == 0``, the memory location pointed to by :c:member:`~Py_buffer.buf` is
351 interpreted as a scalar of size :c:member:`~Py_buffer.itemsize`. In that case,
352 both :c:member:`~Py_buffer.shape` and :c:member:`~Py_buffer.strides` are ``NULL``.
354 If :c:member:`~Py_buffer.strides` is ``NULL``, the array is interpreted as
364 As noted above, :c:member:`~Py_buffer.buf` can point to any location within
405 can be embedded at the start of :c:member:`~Py_buffer.buf`, pointing
437 .. c:function:: int PyObject_GetBuffer(PyObject *exporter, Py_buffer *view, int flags)
455 .. c:function:: void PyBuffer_Release(Py_buffer *view)
467 Return the implied :c:data:`~Py_buffer.itemsize` from :c:data:`~Py_buffer.format`.
473 .. c:function:: int PyBuffer_IsContiguous(Py_buffer *view, char order)
480 .. c:function:: void* PyBuffer_GetPointer(Py_buffer *view, Py_ssize_t *indices)
486 .. c:function:: int PyBuffer_FromContiguous(Py_buffer *view, void *buf, Py_ssize_t len, char fort)
493 .. c:function:: int PyBuffer_ToContiguous(void *buf, Py_buffer *src, Py_ssize_t len, char order)
509 .. c:function:: int PyBuffer_FillInfo(Py_buffer *view, PyObject *exporter, void *buf, Py_ssize_t le…