A helper class for deserialzing an entry payload.
More...
#include <entry_deserializer.h>
|
static std::unique_ptr< Entry > | Deserialize (const std::vector< uint8_t > &payload, std::size_t &offset, uint8_t &numberOfFirstOptions, uint8_t &numberOfSecondOptions) |
| Deserialize an entry payload. More...
|
|
A helper class for deserialzing an entry payload.
◆ Deserialize()
std::unique_ptr< Entry > ara::com::entry::EntryDeserializer::Deserialize |
( |
const std::vector< uint8_t > & |
payload, |
|
|
std::size_t & |
offset, |
|
|
uint8_t & |
numberOfFirstOptions, |
|
|
uint8_t & |
numberOfSecondOptions |
|
) |
| |
|
static |
Deserialize an entry payload.
- Parameters
-
| payload | Serialized entry payload byte array |
| offset | Deserializing offset in the payload |
[out] | numberOfFirstOptions | Number of first options that the deserialized entry have |
[out] | numberOfSecondOptions | Number of second options that the deserialized entry have |
- Returns
- Deserialized entry
- Exceptions
-
std::out_of_range | Throws when the entry type for deserializing is not supported |