Py_buffer

Py3k buffer interface Availability: >= 2.6

Members

Variables

buf
void* buf;
Undocumented in source.
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 Availability: >= 2.7 mono-dimensional buffers.

strides
Py_ssize_t* strides;

_

suboffsets
Py_ssize_t* suboffsets;

_

Meta