by wisesage5001 · 14y ago · 0 comments
Struct needs it because it is interpreting data. unpack needs to know the endianness to correctly interpret numeric types, and pack needs to know the endianness to know how to serialize.
FYI: the C way of doing this is byteswapping.