Endianness

endianness indicates the ordering of bytes within a multi-byte number

Endianness (or byte order) is “baked in” to the particular processor architecture in use. Intel and AMD (x86, x86-64) use little-endian, IBM and Solaris are big-endian, and ARM can be set to both. iOS is little-endian. Bytes within a multi-byte field in network packets are big-endian.

For a number 0x1234

  • Little-endian architectures represent it as 0x34 0x12
  • Big-endian architectures represent it as 0x12 0x34

https://en.wikipedia.org/wiki/Endianness

Edit