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 f4f1020 commit 4360787Copy full SHA for 4360787
1 file changed
Doc/c-api/bytes.rst
@@ -384,14 +384,18 @@ Getters
384
385
Get the writer size.
386
387
+ The function does not invalidate pointers returned by
388
+ :c:func:`PyBytesWriter_GetData`.
389
+
390
The function cannot fail.
391
392
.. c:function:: void* PyBytesWriter_GetData(PyBytesWriter *writer)
393
394
Get the writer data: start of the internal buffer.
395
- The pointer is valid until :c:func:`PyBytesWriter_Finish` or
- :c:func:`PyBytesWriter_Discard` is called on *writer*.
396
+ The pointer remains valid until a :c:type:`PyBytesWriter` function other
397
+ than :c:func:`PyBytesWriter_GetData` or :c:func:`PyBytesWriter_GetSize` is
398
+ called on *writer*.
399
400
401
0 commit comments