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