A serializer for indirect_string.
More...
#include <indirect_string.hpp>
template<>
struct pstore::serialize::serializer< indirect_string >
A serializer for indirect_string.
Note that this reads and writes an address: the body of the string must be read and written separately. For writing, see indirect_string::write_body_and_patch_address().
◆ read() [1/2]
Reads an instance of indirect_string from an archiver.
- Parameters
-
| archive | The Archiver from which a string will be read. |
| value | A reference to uninitialized memory that is suitable for a new string instance. |
- Note
- This function only reads from the database.
◆ read() [2/2]
Reads an instance of indirect_string from an archiver.
- Parameters
-
| archive | The Archiver from which a string will be read. |
| value | A reference to uninitialized memory that is suitable for a new string instance. |
- Note
- This function only reads from the database.
◆ write() [1/2]
Writes an instance of indirect_string to an archiver.
- Parameters
-
| archive | The Archiver to which the string will be written. |
| value | The indirect_string instance to be serialized. |
- Returns
- The address at which the data was written.
- Note
- This function only writes to a database.
◆ write() [2/2]
Writes an instance of indirect_string to an archiver.
- Parameters
-
| archive | The Archiver to which the string will be written. |
| value | The indirect_string instance to be serialized. |
- Returns
- The address at which the data was written.
- Note
- This function only writes to a database.
The documentation for this struct was generated from the following files: