Endianness

Unless stated otherwise, all data structures are packed and byte and bit order is in little endian format.