3.6.1. Arch & Endian Objects#

3.6.1.1. Arch Objects#

PyTypeObject CpArch_Type#

The type object for the CpArchObject class.

type CpArchObject#

Native architecture object. It stores a Python name and an integer pointer size in bits. Pointer atoms use this value to choose the matching pointer-width integer field.

int CpArch_CheckExact(PyObject *op)#

Checks if the given object is an CpArchObject.

int CpArch_Check(PyObject *op)#

Checks if the given object is instance of an CpArchObject.

3.6.1.2. Endian Objects#

PyTypeObject CpEndian_Type#

The type object for the CpEndianObject class.

type CpEndianObject#

Native byte-order object. It stores a Python name and a single format character compatible with Python’s struct module, for example '<', '>' or '='.

int CpEndian_IsLittleEndian(CpEndianObject *endian, _modulestate *mod)#

Returns 1 if the current system is little-endian and 0 otherwise.

int CpEndian_CheckExact(PyObject *op)#

Checks if the given object is an CpEndianObject.

int CpEndian_Check(PyObject *op)#

Checks if the given object is instance of an CpEndianObject