Skip to content

Commit 7df9317

Browse files
committed
Document PyObject_CopyData
1 parent 92d2ea5 commit 7df9317

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/c-api/buffer.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,13 @@ Buffer-related functions
499499
This function fails if *len* != *src->len*.
500500
501501
502+
.. c:function:: int PyObject_CopyData(Py_buffer *dest, Py_buffer *src)
503+
504+
Copy data from *src* to *dest* buffer. Can convert between C-style and
505+
or Fortran-style buffers.
506+
507+
``0`` is returned on success, ``-1`` on error.
508+
502509
.. c:function:: void PyBuffer_FillContiguousStrides(int ndims, Py_ssize_t *shape, Py_ssize_t *strides, int itemsize, char order)
503510
504511
Fill the *strides* array with byte-strides of a :term:`contiguous` (C-style if

0 commit comments

Comments
 (0)