Py_buffer

Py3k buffer interface */ /// Availability: >= 2.

Members

Variables

format
char* format;

_

internal
void* internal;

_

itemsize
Py_ssize_t itemsize;

This is Py_ssize_t so it can be pointed to by strides in simple case.

len
Py_ssize_t len;

_

ndim
int ndim;

_

obj
Borrowed!PyObject* obj;

borrowed reference

readonly
int readonly;

_

shape
Py_ssize_t* shape;

_

smalltable
Py_ssize_t[2] smalltable;

static store for shape and strides of mono-dimensional buffers. */ /// Availability: >= 2.

strides
Py_ssize_t* strides;

_

suboffsets
Py_ssize_t* suboffsets;

_

Meta