
3 May
2011
3 May
'11
10:05 a.m.
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.