Archive that deserializes trivially-copyable values from a byte buffer.
More...
#include <RegistryArchive.hpp>
|
| | InputArchive (const uint8_t *d, size_t s) |
| | Construct an InputArchive over an existing data buffer.
|
| template<typename T> |
| void | operator() (T &value) |
| | Read the next value from the buffer and advance the offset.
|
Archive that deserializes trivially-copyable values from a byte buffer.
◆ InputArchive()
| InputArchive::InputArchive |
( |
const uint8_t * | d, |
|
|
size_t | s ) |
|
inline |
Construct an InputArchive over an existing data buffer.
- Parameters
-
| d | Pointer to the beginning of the buffer. |
| s | Size of the buffer in bytes. |
◆ operator()()
template<typename T>
| void InputArchive::operator() |
( |
T & | value | ) |
|
|
inline |
Read the next value from the buffer and advance the offset.
- Template Parameters
-
| T | A trivially-copyable type. |
- Parameters
-
| value | Output parameter populated with the deserialized value. |
◆ data
| const uint8_t* InputArchive::data |
|
private |
◆ offset
| size_t InputArchive::offset = 0 |
|
private |
◆ size
| size_t InputArchive::size |
|
private |
The documentation for this class was generated from the following file: