B • n3tw0rth skip to content
n3tw0rth a.k.a 0xbyt3z

B

Big Endian

Definition: A byte ordering method where the most significant byte (MSB) is stored first (at the lowest memory address) and the least significant byte (LSB) is stored last.

Example: In a 32-bit system, the hexadecimal number 0x12345678 would be stored in memory as:

AddressValue
0x10000x12
0x10010x34
0x10020x56
0x10030x78

Related Terms: Little Endian, Byte Order


Byte Order

Definition: The sequence in which bytes are arranged when storing multi-byte data types (such as integers or floating-point numbers) in memory. The two primary byte order conventions are big-endian and little-endian.

Example: Consider a 16-bit value 0xABCD.

  • In big-endian format, it is stored as:
    Address | Value
    ---------|------
    0x1000 | 0xAB
    0x1001 | 0xCD
  • In little-endian format, it is stored as:
    Address | Value
    ---------|------
    0x1000 | 0xCD
    0x1001 | 0xAB

Related Terms: Little Endian, Big Endian,