Byte Order

enum cardano_byte_order_t

Enumerates the possible byte order types for endianness interpretation.

This enumeration is used to specify the byte order of data being processed, particularly when bytes need to be interpreted as numeric values. It supports specifying little-endian and big-endian byte orders.

Values:

enumerator CARDANO_BYTE_ORDER_LITTLE_ENDIAN

Little-endian byte order.

In this byte_order, the least significant byte (LSB) is placed at the smallest address, and the most significant byte (MSB) is placed at the largest address. This is the standard byte order used in x86 processors.

enumerator CARDANO_BYTE_ORDER_BIG_ENDIAN

Big-endian byte order.

In this byte_order, the most significant byte (MSB) is placed at the smallest address, and the least significant byte (LSB) is placed at the largest address. This is commonly used in network protocols (network byte order).