Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add doc of PyBuffer_GetPointer
  • Loading branch information
shihai1991 committed Jul 28, 2019
commit fea3e8dbd03045a3840ba83f29e5e6ca9bf53997
5 changes: 5 additions & 0 deletions Doc/c-api/buffer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,11 @@ Buffer-related functions
(*order* is ``'A'``). Return ``0`` otherwise. This function always succeeds.


.. c:function:: void* PyBuffer_GetPointer(Py_buffer *view, Py_ssize_t *indices)

Return the memory area pointer by the *indices* for the *view* buffer given.


.. c:function:: int PyBuffer_ToContiguous(void *buf, Py_buffer *src, Py_ssize_t len, char order)

Copy *len* bytes from *src* to its contiguous representation in *buf*.
Expand Down