PK
New in version 2.6.
PyByteArrayObject
This subtype of PyObject represents a Python bytearray object.
PyObject
PyByteArray_Type
This instance of PyTypeObject represents the Python bytearray type; it is the same object as bytearray in the Python layer.
PyTypeObject
bytearray
PyByteArray_Check
Return true if the object o is a bytearray object or an instance of a subtype of the bytearray type.
PyByteArray_CheckExact
Return true if the object o is a bytearray object, but not an instance of a subtype of the bytearray type.
PyByteArray_FromObject
Return a new bytearray object from any object, o, that implements the buffer protocol.
PyByteArray_FromStringAndSize
Create a new bytearray object from string and its length, len. On failure, NULL is returned.
PyByteArray_Concat
Concat bytearrays a and b and return a new bytearray with the result.
PyByteArray_Size
Return the size of bytearray after checking for a NULL pointer.
PyByteArray_AsString
Return the contents of bytearray as a char array after checking for a NULL pointer.
PyByteArray_Resize
Resize the internal buffer of bytearray to len.
These macros trade safety for speed and they don’t check pointers.
PyByteArray_AS_STRING
Macro version of PyByteArray_AsString().
PyByteArray_AsString()
PyByteArray_GET_SIZE
Macro version of PyByteArray_Size().
PyByteArray_Size()
Complex Number Objects
String/Bytes Objects