11 #include <string_view> 14 #include <cereal/archives/binary.hpp> 15 #include <cereal/types/string.hpp> 16 #include <cereal/types/unordered_map.hpp> 17 #include <cereal/types/vector.hpp> 35 explicit IMembuf(std::vector<char>
const& data);
36 explicit IMembuf(std::string_view sv);
55 std::vector<char>& data();
56 std::vector<char> takeData();
58 using int_type =
typename std::streambuf::int_type;
61 virtual std::streamsize xsputn(
char const* s, std::streamsize num);
64 std::vector<char> buffer_;
typename std::streambuf::int_type int_type
Definition: serialization.h:58
A stream buffer for writing to an accessible vector of bytes.
Definition: serialization.h:51
General utilities.
Definition: assert.cpp:7
OMembuf()
Definition: serialization.h:53
A stream buffer for reading from a vector of bytes.
Definition: serialization.h:33
IMembuf(std::vector< char > const &data)
Definition: serialization.cpp:12