Wraps an archive around a memory buffer for input.
More...
#include <buffer_archive.h>
|
| std::size_t | i |
| | Current input location.
|
| const std::size_t | nbyte |
| | Buffer size.
|
| const unsigned char *const | ptr |
| | The memory buffer.
|
|
| using | is_loading = std::true_type |
| | Type used by Boost.Serialization to determine if this object is an input 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_input_archive = true |
| | Flag to determine if this object is an input 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 input.
- Note
- Type checking is disabled for efficiency.
- Exceptions
-
◆ BufferInputArchive()
Constructor that assigns a buffer.
- Parameters
-
| [in] | ptr | Pointer to the buffer. |
| [in] | nbyte | Size of the buffer. |
◆ close()
◆ load()
Reads data from the memory buffer.
The function only appears (due to enable_if) if T is serializable.
- Template Parameters
-
| T | Type of the data to be read. |
- Parameters
-
| [out] | t | Where to store the read data. |
| [in] | n | Size of data to be read. |
◆ nbyte_avail()
Get the amount of space yet to be read from the buffer.
- Returns
- The amount of space yet to be read from the buffer.
◆ open()
◆ rewind()
Reset the read location to the beginning of the buffer.
◆ nbyte
◆ ptr
The documentation for this class was generated from the following file: