Conceptual
Login

Endianness

The byte order of multi-byte values in memory: little-endian stores the least significant byte first, big-endian the most significant. Formats must pick one — Wasm is little-endian — or readers on different machines disagree on the same bytes.

Questions this Concept answers

  • Two machines with opposite byte order exchange a raw 32-bit value as four bytes. Why does the reader see a different number than the writer sent?