5 Feb
2017
5 Feb
'17
11:55 a.m.
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::vectorstd::uint8_t`.
Do they work with arrays?