Interface for serializing objects into and out of raw bytes representations.
More...
#include <serializer.hpp>
|
virtual | ~serializer ()=default |
|
| serializer (const serializer &)=delete |
|
auto | operator= (const serializer &)=delete |
|
| serializer (serializer &&)=delete |
|
auto | operator= (serializer &&)=delete |
|
virtual | operator bool () const =0 |
| Indicates whether the last serialization operation succeeded.
|
|
virtual void | advance_cursor (size_t len)=0 |
| Moves the serialization cursor forward by the given number of bytes.
|
|
virtual void | reset ()=0 |
| Resets the cursor to the start of the buffer.
|
|
virtual auto | end_of_buffer () const -> bool=0 |
| Indicates whether the cursor is at or beyond the end of the buffer.
|
|
virtual auto | write (const void *data, size_t len) -> bool=0 |
| Attempts to write the given raw data into the buffer starting at the current cursor position.
|
|
virtual auto | read (void *data, size_t len) -> bool=0 |
| Attempts to read the requested number of bytes from the current cursor position into the given memory location.
|
|
Interface for serializing objects into and out of raw bytes representations.
Definition at line 14 of file serializer.hpp.
◆ ~serializer()
virtual cbdc::serializer::~serializer |
( |
| ) |
|
|
virtualdefault |
◆ serializer() [1/3]
cbdc::serializer::serializer |
( |
const serializer & | | ) |
|
|
delete |
◆ serializer() [2/3]
◆ serializer() [3/3]
cbdc::serializer::serializer |
( |
| ) |
|
|
protecteddefault |
◆ advance_cursor()
virtual void cbdc::serializer::advance_cursor |
( |
size_t | len | ) |
|
|
pure virtual |
◆ end_of_buffer()
virtual auto cbdc::serializer::end_of_buffer |
( |
| ) |
const -> bool |
|
nodiscardpure virtual |
◆ operator bool()
virtual cbdc::serializer::operator bool |
( |
| ) |
const |
|
explicitpure virtual |
◆ operator=() [1/2]
auto cbdc::serializer::operator= |
( |
const serializer & | | ) |
|
|
delete |
◆ operator=() [2/2]
auto cbdc::serializer::operator= |
( |
serializer && | | ) |
|
|
delete |
◆ read()
virtual auto cbdc::serializer::read |
( |
void * | data, |
|
|
size_t | len ) -> bool |
|
pure virtual |
◆ reset()
virtual void cbdc::serializer::reset |
( |
| ) |
|
|
pure virtual |
◆ write()
virtual auto cbdc::serializer::write |
( |
const void * | data, |
|
|
size_t | len ) -> bool |
|
pure virtual |
The documentation for this class was generated from the following file: