On Jun 28, 2013, at 6:50 PM, Paul Long
On 6/28/2013 3:44 PM, Klaim - Joël Lamotte wrote:
I meant platform A uses one endianness, platform B uses another, but if i put data from either into the bitstream, the bitstream will use one specific endianness whatever the platform. Which is basically what you describe (the network packet case indeed) if I understood correctly. Correct, but it is important to note that integrals are always encoded big endian in the bitstream. I suppose it's possible that someone would want some other endian, but that's got to be an obscure use case.
There are plenty of little endian only contexts that would want to avoid the host->network->host conversions for all transfers. ___ Rob (Sent from my portable computation engine)