|
jaffarCommon
|
#include <base.hpp>

Public Member Functions | |
| Base (const void *__restrict inputDataBuffer, const size_t inputDataBufferSize) | |
| virtual void | pop (void *const __restrict outputDataBuffer, const size_t outputDataBufferSize)=0 |
| virtual void | popContiguous (void *const __restrict outputDataBuffer, const size_t outputDataBufferSize)=0 |
| __JAFFAR_COMMON__INLINE__ size_t | getInputSize () const |
| __JAFFAR_COMMON__INLINE__ const uint8_t * | getInputDataBuffer () const |
Protected Attributes | |
| const uint8_t *__restrict const | _inputDataBuffer |
| const size_t | _inputDataBufferSize |
| size_t | _inputDataBufferPos = 0 |
Base class for deserializers
A deserializer receives a read-only input data buffer upon creation, and unfolds it onto an actual object element by element, by offering different types of 'pop' operations.
|
inline |
Default constructor for the deserializer classes
| [in] | inputDataBuffer | The input buffer from whence to read the input data |
| [in] | inputDataBufferSize | The size of the input buffer |
|
inline |
Gets a reference to the input data buffer
|
inline |
Get the position of the input buffer header.
|
pure virtual |
Deserializes the specified number of bytes onto the output data buffer, popping the information from the input buffer
| [out] | outputDataBuffer | The contiguous output buffer onto which to deserialize. |
| [in] | outputDataBufferSize | The number of bytes to save onto the output buffer |
Implemented in jaffarCommon::deserializer::Contiguous, and jaffarCommon::deserializer::Differential.
|
pure virtual |
Deserializes the specified number of contiguous bytes onto the output data buffer, popping the information from the input buffer
| [out] | outputDataBuffer | The contiguous output buffer onto which to deserialize |
| [in] | outputDataBufferSize | The number of bytes to save onto the output buffer |
Implemented in jaffarCommon::deserializer::Contiguous, and jaffarCommon::deserializer::Differential.
|
protected |
The read-only internally-stored input data buffer
|
protected |
The position of the header that iterates over the data buffer
|
protected |
The maximum size of the input data buffer