Commit 5a56ce4a authored by Hai Shi's avatar Hai Shi Committed by Miss Islington (bot)

bpo-37750: Add doc of PyBuffer_FromContiguous (GH-15988)



https://bugs.python.org/issue37750



Automerge-Triggered-By: @matrixise
parent 0b72ccff
......@@ -483,6 +483,13 @@ Buffer-related functions
*indices* must point to an array of ``view->ndim`` indices.
.. c:function:: int PyBuffer_FromContiguous(Py_buffer *view, void *buf, Py_ssize_t len, char fort)
Copy contiguous *len* bytes from *buf* to *view*.
*fort* can be ``'C'`` or ``'F'`` (for C-style or Fortran-style ordering).
``0`` is returned on success, ``-1`` on error.
.. 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*.
......
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