Commit c0c33eaa authored by Stefan Krah's avatar Stefan Krah

Issue #23352: Document that Py_buffer.suboffsets must be NULL if no suboffsets

are required.
parent d2dff6c7
......@@ -98,8 +98,11 @@ The new-style Py_buffer struct
suboffset value that it negative indicates that no de-referencing should
occur (striding in a contiguous memory block).
If all suboffsets are negative (i.e. no de-referencing is needed, then
this field must be NULL (the default value).
Here is a function that returns a pointer to the element in an N-D array
pointed to by an N-dimesional index when there are both non-NULL strides
pointed to by an N-dimensional index when there are both non-NULL strides
and suboffsets::
void *get_item_pointer(int ndim, void *buf, Py_ssize_t *strides,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment