summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
Diffstat (limited to 'Include')
-rw-r--r--Include/bytesobject.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/bytesobject.h b/Include/bytesobject.h
index 6cd5a34..2c4c4c4 100644
--- a/Include/bytesobject.h
+++ b/Include/bytesobject.h
@@ -174,6 +174,13 @@ PyAPI_FUNC(char*) _PyBytesWriter_Alloc(_PyBytesWriter *writer,
PyAPI_FUNC(char*) _PyBytesWriter_Prepare(_PyBytesWriter *writer,
char *str,
Py_ssize_t size);
+
+/* Write bytes.
+ Raise an exception and return NULL on error. */
+PyAPI_FUNC(char*) _PyBytesWriter_WriteBytes(_PyBytesWriter *writer,
+ char *str,
+ char *bytes,
+ Py_ssize_t size);
#endif /* Py_LIMITED_API */
#ifdef __cplusplus