deimos.python.bytesobject

Mirror bytesobject.h

Note bytesobject.h did not exist before python 2.6; however for python 2, it simply provides aliases to contents of stringobject.h, so we provide them anyways to make it easier to write portable extension modules.

Members

Aliases

PyBytesObject
alias PyBytesObject = PyStringObject
PyBytes_AS_STRING
alias PyBytes_AS_STRING = PyString_AS_STRING
PyBytes_AsDecodedObject
alias PyBytes_AsDecodedObject = PyString_AsDecodedObject

Availability: <= 2.6

PyBytes_AsEncodedObject
alias PyBytes_AsEncodedObject = PyString_AsEncodedObject

Availability: <= 2.6

PyBytes_AsString
alias PyBytes_AsString = PyString_AsString
PyBytes_AsStringAndSize
alias PyBytes_AsStringAndSize = PyString_AsStringAndSize
PyBytes_CHECK_INTERNED
alias PyBytes_CHECK_INTERNED = PyString_CHECK_INTERNED
PyBytes_Check
alias PyBytes_Check = PyString_Check
PyBytes_CheckExact
alias PyBytes_CheckExact = PyString_CheckExact
PyBytes_Concat
alias PyBytes_Concat = PyString_Concat
PyBytes_ConcatAndDel
alias PyBytes_ConcatAndDel = PyString_ConcatAndDel
PyBytes_Decode
alias PyBytes_Decode = PyString_Decode

Availability: <= 2.6

PyBytes_DecodeEscape
alias PyBytes_DecodeEscape = PyString_DecodeEscape
PyBytes_Encode
alias PyBytes_Encode = PyString_Encode

Availability: <= 2.6

PyBytes_Format
alias PyBytes_Format = PyString_Format
PyBytes_FromFormat
alias PyBytes_FromFormat = PyString_FromFormat
PyBytes_FromFormatV
alias PyBytes_FromFormatV = PyString_FromFormatV
PyBytes_FromString
alias PyBytes_FromString = PyString_FromString
PyBytes_FromStringAndSize
alias PyBytes_FromStringAndSize = PyString_FromStringAndSize
PyBytes_GET_SIZE
alias PyBytes_GET_SIZE = PyString_GET_SIZE
PyBytes_Repr
alias PyBytes_Repr = PyString_Repr
PyBytes_Size
alias PyBytes_Size = PyString_Size
PyBytes_Type
alias PyBytes_Type = PyString_Type
Py_TPFLAGS_BYTES_SUBCLASS
alias Py_TPFLAGS_BYTES_SUBCLASS = Py_TPFLAGS_STRING_SUBCLASS

Availability: >= 2.6

_PyBytes_Eq
alias _PyBytes_Eq = _PyString_Eq
_PyBytes_FormatLong
alias _PyBytes_FormatLong = _PyString_FormatLong
_PyBytes_InsertThousandsGrouping
alias _PyBytes_InsertThousandsGrouping = _PyString_InsertThousandsGrouping

Availability: >= 2.6

_PyBytes_Join
alias _PyBytes_Join = _PyString_Join
_PyBytes_Resize
alias _PyBytes_Resize = _PyString_Resize

Functions

PyBytes_AS_STRING
const(char)* PyBytes_AS_STRING(PyObject* op)
PyBytes_AsString
const(char)* PyBytes_AsString(PyObject* )
PyBytes_AsStringAndSize
int PyBytes_AsStringAndSize(PyObject* obj, char** s, Py_ssize_t* len)
PyBytes_Check
int PyBytes_Check(PyObject* op)
PyBytes_CheckExact
int PyBytes_CheckExact(PyObject* op)
PyBytes_Concat
void PyBytes_Concat(PyObject** , PyObject* )
PyBytes_ConcatAndDel
void PyBytes_ConcatAndDel(PyObject** , PyObject* )
PyBytes_DecodeEscape
PyObject* PyBytes_DecodeEscape(const(char)* , Py_ssize_t , const(char)* , Py_ssize_t , const(char)* )
PyBytes_FromFormat
PyObject* PyBytes_FromFormat(const(char)* , ...)
PyBytes_FromFormatV
PyObject* PyBytes_FromFormatV(const(char)* , va_list )
PyBytes_FromObject
PyObject* PyBytes_FromObject(PyObject* )
PyBytes_FromString
PyObject* PyBytes_FromString(const(char)* )
PyBytes_FromStringAndSize
PyObject* PyBytes_FromStringAndSize(const(char)* , Py_ssize_t )
PyBytes_GET_SIZE
auto PyBytes_GET_SIZE(PyObject* op)
PyBytes_Repr
PyObject* PyBytes_Repr(PyObject* , int )
PyBytes_Size
Py_ssize_t PyBytes_Size(PyObject* )
_PyBytes_FormatLong
PyObject* _PyBytes_FormatLong(PyObject* , int , int , int , char** , int* )
_PyBytes_InsertThousandsGrouping
Py_ssize_t _PyBytes_InsertThousandsGrouping(char* buffer, Py_ssize_t n_buffer, char* digits, Py_ssize_t n_digits, Py_ssize_t min_width, const(char)* grouping, char* thousands_sep)

Using explicit passed-in values, insert the thousands grouping into the string pointed to by buffer. For the argument descriptions, see Objects/stringlib/localeutil.h

_PyBytes_InsertThousandsGroupingLocale
Py_ssize_t _PyBytes_InsertThousandsGroupingLocale(char* buffer, Py_ssize_t n_buffer, char* digits, Py_ssize_t n_digits, Py_ssize_t min_width)
_PyBytes_Join
PyObject* _PyBytes_Join(PyObject* sep, PyObject* x)
_PyBytes_Resize
int _PyBytes_Resize(PyObject** , Py_ssize_t )

Manifest constants

F_ALT
enum F_ALT;
F_BLANK
enum F_BLANK;
F_LJUST
enum F_LJUST;
F_SIGN
enum F_SIGN;
F_ZERO
enum F_ZERO;

Structs

PyBytesObject
struct PyBytesObject

subclass of PyVarObject.

Meta