3.6.1. Arch & Endian Objects#
3.6.1.1. Arch Objects#
-
PyTypeObject CpArch_Type#
The type object for the
CpArchObjectclass.
-
type CpArchObject#
Native architecture object. It stores a Python
nameand 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
CpEndianObjectclass.
-
type CpEndianObject#
Native byte-order object. It stores a Python
nameand a single format character compatible with Python’sstructmodule, for example'<','>'or'='.
-
int CpEndian_IsLittleEndian(CpEndianObject *endian, _modulestate *mod)#
Returns
1if the current system is little-endian and0otherwise.
-
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