beginner · layout
When Do You Have to Care About Endianness?
What is endianness, and in what situations does it actually affect your code?
Practical scenario
A service writes structs directly to a cache file for speed. It works everywhere in testing. A new deployment target reads the file and gets nonsense values.
What it tests
- • Understanding of byte order within a multi-byte value
- • Whether the candidate knows when it is and is not visible
- • Awareness of serialization and protocol boundaries