Subject: Re: [boost] Interest in simple unformatted binary stream I/O?
From: Dean Michael Berris (mikhailberis_at_[hidden])
Date: 2011-04-24 09:44:59
On Sun, Apr 24, 2011 at 10:12 PM, Beman Dawes <bdawes_at_[hidden]> wrote:
> There have been many requests on Boost and various C++ newsgroups for
> unformatted binary I/O. For example, in 2003 Neal Becker wrote:
> Â Â I wonder if anyone has code for implementing unformatted I/O?
> What I have in mind is
> Â Â for the simple case where the application that reads data knows
> the data types, so
> Â Â this is not as complicated as the general marshalling situation.
> This proposal provides a very simple solution that works with standard
> library input and output streams. The one caveat is that the stream
> must be opened with filemode std::ios_base::binary to avoid certain
> data values being treated as line endings.
> For docs, header, and example code, see
> Is there interest in this for Boost?
> It seems way too small and simple to be a whole library itself. Are
> there any ideas where it should live and what namespace it should be
I'd think this would be a good utility. Should it be in the utility directory?
-- Dean Michael Berris http://about.me/deanberris
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk