Byteorder and Architecture#
Byteorder#
- class caterpillar.byteorder.ByteOrder(name: str, ch: str, alignment: Alignment = Alignment.NONE, size: Size = Size.STANDARD)[source]#
Represents byte order information, including alignment and size.
- Parameters:
name – A string representing the name of the byte order.
ch – A string representing the character used to specify the byte order in struct format strings.
alignment – An enumeration representing the alignment (default is Alignment.NONE).
size – An enumeration representing the size (default is Size.STANDARD).
- class Alignment(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
- byteorder.BYTEORDER_FIELD = '__byteorder__'#
- byteorder.Native = ByteOrder(name='Native', ch='=', alignment=<Alignment.NONE: 0>, size=<Size.STANDARD: 0>)#
- byteorder.BigEndian = ByteOrder(name='Big Endian', ch='>', alignment=<Alignment.NONE: 0>, size=<Size.STANDARD: 0>)#
- byteorder.LittleEndian = ByteOrder(name='Little Endian', ch='<', alignment=<Alignment.NONE: 0>, size=<Size.STANDARD: 0>)#
- byteorder.NetEndian = ByteOrder(name='Network', ch='!', alignment=<Alignment.NONE: 0>, size=<Size.STANDARD: 0>)#
- byteorder.SysNative = ByteOrder(name='SysNative', ch='@', alignment=<Alignment.NATIVE: 1>, size=<Size.NATIVE: 1>)#