|
| | BufferOutputArchive () |
| | Default constructor; the buffer will only count data.
|
| | BufferOutputArchive (void *ptr, std::size_t nbyte) |
| | Constructor that assigns a buffer.
|
| void | close () |
| | Close the archive.
|
| bool | count_only () const |
| | Determine if this buffer is used for counting.
|
| void | flush () |
| | Flush the archive.
|
| void | open (std::size_t) |
| | Open a buffer with a specific size.
|
| std::size_t | size () const |
| | Return the amount of data stored (counted) in the buffer.
|
| template<typename T> |
| std::enable_if< madness::is_trivially_serializable< T >::value, void >::type | store (const T *t, long n) const |
| | Stores (counts) data into the memory buffer.
|
| | BaseArchive () |
|
| using | is_saving = std::true_type |
| | Type used by Boost.Serialization to determine if this object is an output archive.
|
| using | is_loading = std::false_type |
| | Type used by Boost.Serialization to determine if this object is an input archive.
|
| using | is_saving = std::false_type |
| | Type used by Boost.Serialization to determine if this object is an output archive.
|
| static constexpr bool | is_output_archive = true |
| | Flag to determine if this object is an output archive.
|
| static constexpr bool | is_archive = true |
| | Flag to determine if this object is an archive.
|
| static constexpr bool | is_input_archive = false |
| | Flag to determine if this object is an input archive.
|
| static constexpr bool | is_output_archive = false |
| | Flag to determine if this object is an output archive.
|
| static constexpr bool | is_parallel_archive = false |
| | Flag to determine if this object is a parallel archive.
|
Wraps an archive around a memory buffer for output.
- Note
- Type checking is disabled for efficiency.
- Exceptions
-
The default constructor can also be used to count stuff.