Boost logo

Boost :

Subject: Re: [boost] Interest in simple unformatted binary stream I/O?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-04-30 06:32:39


On 29/04/2011 13:13, Max Sobolev wrote:

> In stream's environment endianess can be implemented on the manipulator
> basis:
>
> raw_stream raw;
> raw << ordering::little_endian << 1.0 << 'X' << 127;
> double d;
> char c;
> int i;
> raw >> d >> c >> ordering::big_endian >> i;

And what would you construct raw_stream from?


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