Boost logo

Boost :

Subject: Re: [boost] Interest in simple unformatted binary stream I/O?
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2011-04-28 23:15:21


On Sun, Apr 24, 2011 at 18:43, Marsh Ray <marsh_at_[hidden]> wrote:
>
> Rather than a machine and compiler-dependent binary IO facility based on
> iostreams, I'd rather have a simple, minimal, portable binary streaming
> interface that handled endianness and alignment well for wire-representation
> defined structures.
>
> <iostream> brings in a huge header tree with 99% unnecessary functionality
> for binary protocols. The more efficient the headers, the better. Functions
> that didn't need to read could just include the header for writing, and
> vice-versa.
>

Would you be fine with it working on streambufs? That way you'd only
need <streambuf>...


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