File indexing completed on 2025-01-18 10:06:48
0001
0002
0003 #ifndef Py_BYTEARRAYOBJECT_H
0004 #define Py_BYTEARRAYOBJECT_H
0005 #ifdef __cplusplus
0006 extern "C" {
0007 #endif
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 PyAPI_DATA(PyTypeObject) PyByteArray_Type;
0021 PyAPI_DATA(PyTypeObject) PyByteArrayIter_Type;
0022
0023
0024 #define PyByteArray_Check(self) PyObject_TypeCheck((self), &PyByteArray_Type)
0025 #define PyByteArray_CheckExact(self) Py_IS_TYPE((self), &PyByteArray_Type)
0026
0027
0028 PyAPI_FUNC(PyObject *) PyByteArray_FromObject(PyObject *);
0029 PyAPI_FUNC(PyObject *) PyByteArray_Concat(PyObject *, PyObject *);
0030 PyAPI_FUNC(PyObject *) PyByteArray_FromStringAndSize(const char *, Py_ssize_t);
0031 PyAPI_FUNC(Py_ssize_t) PyByteArray_Size(PyObject *);
0032 PyAPI_FUNC(char *) PyByteArray_AsString(PyObject *);
0033 PyAPI_FUNC(int) PyByteArray_Resize(PyObject *, Py_ssize_t);
0034
0035 #ifndef Py_LIMITED_API
0036 # define Py_CPYTHON_BYTEARRAYOBJECT_H
0037 # include "cpython/bytearrayobject.h"
0038 # undef Py_CPYTHON_BYTEARRAYOBJECT_H
0039 #endif
0040
0041 #ifdef __cplusplus
0042 }
0043 #endif
0044 #endif