endianness

The order in which the bytes of a multi-byte number are stored: most significant first (big-endian) or least significant first (little-endian).

In more detail

Network protocols conventionally use big-endian, also called network byte order. Reading bytes with the wrong endianness gives a completely different number.

Examples

The Confluent wire format stores the schema ID as a big-endian four-byte integer.
Windows and x86 processors are little-endian, so the number 0x5A4D appears in a file as the bytes 4D 5A (MZ).

Related terms

Taught in

References

Certification courses