Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Doc/c-api/bytes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -384,14 +384,18 @@ Getters

Get the writer size.

The function does not invalidate pointers returned by
:c:func:`PyBytesWriter_GetData`.

The function cannot fail.

.. c:function:: void* PyBytesWriter_GetData(PyBytesWriter *writer)

Get the writer data: start of the internal buffer.

The pointer is valid until :c:func:`PyBytesWriter_Finish` or
:c:func:`PyBytesWriter_Discard` is called on *writer*.
The pointer remains valid until a :c:type:`PyBytesWriter` function other
than :c:func:`PyBytesWriter_GetData` or :c:func:`PyBytesWriter_GetSize` is
called on *writer*.

The function cannot fail.

Expand Down
Loading