Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost iostreams for binary data
From: Robert Dailey (rcdailey.lists_at_[hidden])
Date: 2017-02-06 19:17:05


On Mon, Feb 6, 2017 at 12:06 PM, Bjorn Reese <breese_at_[hidden]> wrote:
> On 02/06/2017 06:03 PM, Robert Dailey wrote:
>
>> using ByteVector = std::vector<std::uint8_t>;
>
>
> I meant, can BinaryInputStream read data from an array, and can
> BinaryOutputStream write data into an array?

If by array you mean:

std::uint8_t bytes[100];

Not in my current implementation. I do not use arrays in my code, so I
haven't needed to support it. But my stream classes use iterators and
algorithms for writing/reading data, so shouldn't be hard to add.
What, if I may ask, are you trying to get at?


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