|
pstore2
|
Contains the serialization archive types. More...
Classes | |
| class | buffer_reader |
| An archive-reader which consumes data from a supplied pointer range. More... | |
| class | buffer_writer |
| class | database_reader |
| An archive-reader which reads data from a database. More... | |
| class | database_writer |
| class | null |
| An archive-writer which simply discards any data that it writes. More... | |
| class | range_reader |
| An archive-reader which consumes data from an iterator. More... | |
| class | vector_writer |
| An archive-writer which writes data to a std::vector of std::uint8_t bytes. More... | |
| struct | void_type |
| The archiver put() and [optional] putn() methods can optionally return a value to the caller. More... | |
| class | writer_base |
| The base class for archive-writer objects. More... | |
Functions | |
| auto | make_writer (transaction_base &transaction) noexcept -> database_writer |
| A convenience function which simplifies the construction of a database_writer instance if the caller has an existing transaction object. More... | |
| database_reader | make_reader (pstore::database const &db, pstore::address const addr) noexcept |
| A convenience function which provides symmetry with the make_writer() function. More... | |
| template<typename T > | |
| auto | unsigned_cast (T const &t) -> typename std::make_unsigned< T >::type |
| std::ostream & | operator<< (std::ostream &os, vector_writer const &writer) |
| Writes the contents of a vector_writer object to an ostream as a stream of space-separated two-digit hexadecimal values. More... | |
| std::ostream & | operator<< (std::ostream &os, buffer_writer const &writer) |
| Writes the contents of a buffer_writer object to an ostream as a stream of space-separated two-digit hexadecimal values. More... | |
| template<typename InputIterator > | |
| range_reader< InputIterator > | make_reader (InputIterator first) |
| Constructs an archive-reader which will read from an iterator. More... | |
Contains the serialization archive types.
Containts the serialization archive types.
|
inlinenoexcept |
A convenience function which provides symmetry with the make_writer() function.
Constructs a database reader using an input database and an address.
| db | The database from which data will be read. |
| addr | The address at which to start reading. |
| range_reader<InputIterator> pstore::serialize::archive::make_reader | ( | InputIterator | first | ) |
Constructs an archive-reader which will read from an iterator.
| first | The iterator from which bytes will be read. |
|
inlinenoexcept |
A convenience function which simplifies the construction of a database_writer instance if the caller has an existing transaction object.
| transaction | The transaction to which the database_writer will append. |
| std::ostream & pstore::serialize::archive::operator<< | ( | std::ostream & | os, |
| vector_writer const & | writer | ||
| ) |
Writes the contents of a vector_writer object to an ostream as a stream of space-separated two-digit hexadecimal values.
| os | The output stream to which output will be written. |
| writer | The vector_writer whose contents are to be dumped to the output stream. |
| std::ostream & pstore::serialize::archive::operator<< | ( | std::ostream & | os, |
| buffer_writer const & | writer | ||
| ) |
Writes the contents of a buffer_writer object to an ostream as a stream of space-separated two-digit hexadecimal values.
| os | The output stream to which output will be written. |
| writer | The buffer_writer whose contents are to be dumped to the output stream. |
1.8.13