A helper class for deserialzing an option payload.
More...
#include <option_deserializer.h>
|
static std::unique_ptr< Option > | Deserialize (const std::vector< uint8_t > &payload, std::size_t &offset) |
| Deserialize an option payload. More...
|
|
A helper class for deserialzing an option payload.
◆ Deserialize()
std::unique_ptr< Option > ara::com::option::OptionDeserializer::Deserialize |
( |
const std::vector< uint8_t > & |
payload, |
|
|
std::size_t & |
offset |
|
) |
| |
|
static |
Deserialize an option payload.
- Parameters
-
payload | Serialized option payload byte array |
offset | Deserializing offset in the payload |
- Returns
- Deserialized option
- Exceptions
-
std::out_of_range | Throws when the option type for deserializing is not supported |