mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Change PyBuffer to Py_buffer to be consistent with other non-object structures like Py_complex. Add some more functionality to the memoryview object.
This commit is contained in:
parent
3f993c3b52
commit
8ae62b6094
16 changed files with 145 additions and 85 deletions
|
@ -153,10 +153,10 @@ typedef struct bufferinfo {
|
|||
Py_ssize_t *strides;
|
||||
Py_ssize_t *suboffsets;
|
||||
void *internal;
|
||||
} PyBuffer;
|
||||
} Py_buffer;
|
||||
|
||||
typedef int (*getbufferproc)(PyObject *, PyBuffer *, int);
|
||||
typedef void (*releasebufferproc)(PyObject *, PyBuffer *);
|
||||
typedef int (*getbufferproc)(PyObject *, Py_buffer *, int);
|
||||
typedef void (*releasebufferproc)(PyObject *, Py_buffer *);
|
||||
|
||||
/* Flags for getting buffers */
|
||||
#define PyBUF_SIMPLE 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue