2 ms·
Better yet: Throw out the endian flag and define the network protocol as always being big/little endian. Network protocols which can swap endian order is a terr
by josephg 4y ago
Better yet: Throw out the endian flag and define the network protocol as always being big/little endian. Network protocols which can swap endian order is a terrible idea. Let it die.
Convert from bytes in (whatever) endian order to bytes in memory when data is read and written using a uint32_t parse_le_uint32(uint8_t[4]) method or something similar.