Skip to content

Commit a91c5ea

Browse files
committed
Add document
1 parent 4569791 commit a91c5ea

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Doc/c-api/buffer.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,15 @@ Buffer-related functions
517517
518518
``0`` is returned on success, ``-1`` on error.
519519
520+
.. c:function:: int PyObject_CopyToObject(PyObject *obj, void *buf, Py_ssize_t len, char fortran)
521+
522+
Copy data from *buf* to *obj* buffer. Can convert between C-style and
523+
or Fortran-style buffers.
524+
525+
``0`` is returned on success, ``-1`` on error.
526+
527+
.. versionadded:: 3.14
528+
520529
.. c:function:: void PyBuffer_FillContiguousStrides(int ndims, Py_ssize_t *shape, Py_ssize_t *strides, int itemsize, char order)
521530
522531
Fill the *strides* array with byte-strides of a :term:`contiguous` (C-style if

0 commit comments

Comments
 (0)