Document that PyBytesWriter_GetData() and PyBytesWriter_GetSize()
getter functions cannot fail
Get the writer size.
+ 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 function cannot fail.
+
Low-level API
^^^^^^^^^^^^^
return NULL;
}
unsigned char *bin_data = PyBytesWriter_GetData(writer);
- if (bin_data == NULL) {
- goto error;
- }
uint32_t leftchar = 0;
int group_pos = 0;