maat::serial::Serializer::Stream class

Raw stream to write serialized data to.

❱   Constructors, destructors, conversion operators

Stream(std::ostream& os)
Constructor. Stream argument MUST be opened in binary mode (ios_base::binary)

❱   Public functions

template<typename T>
auto operator<<(Bits<T&> b) -> Stream&
Dump raw contents of a primitive type.

template<typename T>
auto operator<<(Buffer<T> b) -> Stream&
Dump a raw buffer.

auto current_pos() const -> int
Return current position in stream.

void set_pos(int pos)
Set position in stream.