Boost logo

Boost :

Subject: Re: [boost] Any interest in bitstream class?
From: Rob Stewart (robertstewart_at_[hidden])
Date: 2013-06-29 11:04:45


On Jun 28, 2013, at 6:50 PM, Paul Long <plong_at_[hidden]> wrote:

> 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)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk