| 1 |
|
| 2 |
|
| 3 |
#ifndef Py_BYTEARRAYOBJECT_H |
| 4 |
#define Py_BYTEARRAYOBJECT_H |
| 5 |
#ifdef __cplusplus |
| 6 |
extern "C" { |
| 7 |
#endif |
| 8 |
|
| 9 |
#include <stdarg.h> |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
#define PyByteArray_GET_SIZE(op) PyByteArray_Size((PyObject*)(op)) |
| 21 |
#define PyByteArray_AS_STRING(op) PyByteArray_AsString((PyObject*)(op)) |
| 22 |
|
| 23 |
|
| 24 |
typedef struct { |
| 25 |
PyObject_VAR_HEAD |
| 26 |
#if 0 |
| 27 |
int ob_exports; |
| 28 |
Py_ssize_t ob_alloc; |
| 29 |
char *ob_bytes; |
| 30 |
#endif |
| 31 |
} PyByteArrayObject; |
| 32 |
|
| 33 |
#ifdef __cplusplus |
| 34 |
} |
| 35 |
#endif |
| 36 |
#endif |