python-2.7.6/include/bytearrayobject.h File Reference

bytearrayobject.h File Reference
#include <stdarg.h>

Classes

struct  PyByteArrayObject
 

Macros

#define PyByteArray_Check(self)   PyObject_TypeCheck(self, &PyByteArray_Type)
 
#define PyByteArray_CheckExact(self)   (Py_TYPE(self) == &PyByteArray_Type)
 
#define PyByteArray_AS_STRING(self)
 
#define PyByteArray_GET_SIZE(self)   (assert(PyByteArray_Check(self)),Py_SIZE(self))
 

Functions

 PyAPI_DATA (PyTypeObject) PyByteArray_Type
 
 PyAPI_FUNC (PyObject *) PyByteArray_FromObject(PyObject *)
 
 PyAPI_FUNC (Py_ssize_t) PyByteArray_Size(PyObject *)
 
 PyAPI_FUNC (char *) PyByteArray_AsString(PyObject *)
 
 PyAPI_DATA (char) _PyByteArray_empty_string[]
 

Variables

PyObject Py_ssize_t
 

Macro Definition Documentation

#define PyByteArray_AS_STRING (   self)
Value:
(assert(PyByteArray_Check(self)), \
Py_SIZE(self) ? ((PyByteArrayObject *)(self))->ob_bytes : _PyByteArray_empty_string)
#define PyByteArray_Check(self)

Definition at line 47 of file bytearrayobject.h.

#define PyByteArray_Check (   self)    PyObject_TypeCheck(self, &PyByteArray_Type)

Definition at line 35 of file bytearrayobject.h.

#define PyByteArray_CheckExact (   self)    (Py_TYPE(self) == &PyByteArray_Type)

Definition at line 36 of file bytearrayobject.h.

#define PyByteArray_GET_SIZE (   self)    (assert(PyByteArray_Check(self)),Py_SIZE(self))

Definition at line 50 of file bytearrayobject.h.

Function Documentation

PyAPI_DATA ( PyTypeObject  )
PyAPI_DATA ( char  )
PyAPI_FUNC ( PyObject )
PyAPI_FUNC ( Py_ssize_t  )
PyAPI_FUNC ( char *  )

Variable Documentation

Definition at line 41 of file bytearrayobject.h.

Go to the source code of this file.