- PyByteArray_AS_STRING
char* PyByteArray_AS_STRING(PyObject* self)
template trading safety for speed
Availability: >= 2.6
- PyByteArray_AsString
char* PyByteArray_AsString(PyObject*)
- PyByteArray_Check
int PyByteArray_Check(PyObject* self)
Type check macro
Availability: >= 2.6
- PyByteArray_CheckExact
int PyByteArray_CheckExact(PyObject* self)
Type check macro
Availability: >= 2.6
- PyByteArray_Concat
PyObject* PyByteArray_Concat(PyObject*, PyObject*)
- PyByteArray_FromObject
PyObject* PyByteArray_FromObject(PyObject*)
- PyByteArray_FromStringAndSize
PyObject* PyByteArray_FromStringAndSize(const char*, Py_ssize_t)
- PyByteArray_GET_SIZE
auto PyByteArray_GET_SIZE(PyObject* self)
template trading safety for speed
Availability: >= 2.6
- PyByteArray_Resize
int PyByteArray_Resize(PyObject*, Py_ssize_t)
- PyByteArray_Size
Py_ssize_t PyByteArray_Size(PyObject*)
Mirror bytearrayobject.h
Type PyByteArrayObject represents a mutable array of bytes. The Python API is that of a sequence; the bytes are mapped to ints in [0, 256). Bytes are not characters; they may be used to encode characters. The only way to go between bytes and str/unicode is via encoding and decoding. For the convenience of C programmers, the bytes type is considered to contain a char pointer, not an unsigned char pointer.