Simpler way to create a C++ memorystream from (char*, size_t), without copying the data?
I’m assuming that your input data is binary (not text), and that you want to extract chunks of binary data from it. All without making a copy of your input data. You can combine boost::iostreams::basic_array_source and boost::iostreams::stream_buffer (from Boost.Iostreams) with boost::archive::binary_iarchive (from Boost.Serialization) to be able to use convenient extraction >> operators to read chunks … Read more