8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35890ab commit 2f17681Copy full SHA for 2f17681
Doc/c-api/buffer.rst
@@ -353,10 +353,10 @@ both :c:member:`~Py_buffer.shape` and :c:member:`~Py_buffer.strides` are *NULL*.
353
354
If :c:member:`~Py_buffer.strides` is *NULL*, the array is interpreted as
355
a standard n-dimensional C-array. Otherwise, the consumer must access an
356
-n-dimensional array as follows:
+n-dimensional array as follows::
357
358
- ``ptr = (char *)buf + indices[0] * strides[0] + ... + indices[n-1] * strides[n-1]``
359
- ``item = *((typeof(item) *)ptr);``
+ ptr = (char *)buf + indices[0] * strides[0] + ... + indices[n-1] * strides[n-1]
+ item = *((typeof(item) *)ptr);
360
361
362
As noted above, :c:member:`~Py_buffer.buf` can point to any location within
0 commit comments