Boost logo

Boost :

Subject: Re: [boost] Interest in simple unformatted binary stream I/O?
From: Max Sobolev (macsmr_at_[hidden])
Date: 2011-05-03 06:05:21


On 30.04.2011 14:32, Mathias Gaunard wrote:
> 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?
>

from std::string or nothing as std::stringstream does.

..At the moment I have some draft of the raw_stream implementation: its
interface is very close to std::stringstream's one, and (now) raw_stream
use std::stringbuf as its stream-buffer.


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