Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost iostreams for binary data
From: Bjorn Reese (breese_at_[hidden])
Date: 2017-02-05 11:55:14


On 01/31/2017 09:25 PM, Robert Dailey wrote:
> I have my own BinaryInputStream and BinaryOutputStream classes that
> simply take a reference to some container that meets the requirements
> of random access and contiguous internal memory. It doesn't own this
> container, but rather serves as an adapter to the container to allow
> stream operators to be used for streaming out data. For example, you
> can stream a `std::uint32_t` to the binary stream, and it will insert
> 4 elements into an internal byte vector which is just
> `std::vector<std::uint8_t>`.

Do they work with arrays?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net