Endianness from what I understand, is when the bytes that compose a multibyte word differ in their order, at least in the most typical case. So that an 16-bit integer may b
For the record, if you're transferring data between devices you should pretty much always use network-byte-ordering with ntohl
, htonl
, ntohs
, htons
. It'll convert to the network byte order standard for Endianness regardless of what your system and the destination system use. Of course, both systems shoud be programmed like this - but they usually are in networking scenarios.