Skip to content

Commit 1b29af8

Browse files
shihai1991pitrou
authored andcommitted
bpo-34101: Add doc of PyBuffer_GetPointer (GH-14994)
1 parent c9345e3 commit 1b29af8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/c-api/buffer.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,12 @@ Buffer-related functions
475475
(*order* is ``'A'``). Return ``0`` otherwise. This function always succeeds.
476476
477477
478+
.. c:function:: void* PyBuffer_GetPointer(Py_buffer *view, Py_ssize_t *indices)
479+
480+
Get the memory area pointed to by the *indices* inside the given *view*.
481+
*indices* must point to an array of ``view->ndim`` indices.
482+
483+
478484
.. c:function:: int PyBuffer_ToContiguous(void *buf, Py_buffer *src, Py_ssize_t len, char order)
479485
480486
Copy *len* bytes from *src* to its contiguous representation in *buf*.

0 commit comments

Comments
 (0)