|
cereal
A C++11 library for serialization
|
An output archive designed to save data in a compact binary representation. More...
#include <cereal/archives/binary.hpp>
Public Member Functions | |
| BinaryOutputArchive (std::ostream &stream) | |
| Construct, outputting to the provided stream. More... | |
| void | saveBinary (const void *data, size_t size) |
| Writes size bytes of data to the output stream. | |
Public Member Functions inherited from cereal::OutputArchive< BinaryOutputArchive, AllowEmptyClassElision > | |
| OutputArchive (BinaryOutputArchive *const self) | |
| Construct the output archive. More... | |
| BinaryOutputArchive & | operator() (Types &&...args) |
| Serializes all passed in data. | |
| std::uint32_t | registerSharedPointer (void const *addr) |
| Registers a shared pointer with the archive. More... | |
| std::uint32_t | registerPolymorphicType (char const *name) |
| Registers a polymorphic type name with the archive. More... | |
An output archive designed to save data in a compact binary representation.
This archive outputs data to a stream in an extremely compact binary representation with as little extra metadata as possible.
|
inline |
Construct, outputting to the provided stream.
| stream | The stream to output to. Can be a stringstream, a file stream, or even cout! |
1.8.3.1