Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::com::option::OptionDeserializer Class Reference

A helper class for deserialzing an option payload. More...

#include <option_deserializer.h>

Static Public Member Functions

static std::unique_ptr< OptionDeserialize (const std::vector< uint8_t > &payload, std::size_t &offset)
 Deserialize an option payload. More...
 

Detailed Description

A helper class for deserialzing an option payload.

Member Function Documentation

◆ 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
payloadSerialized option payload byte array
offsetDeserializing offset in the payload
Returns
Deserialized option
Exceptions
std::out_of_rangeThrows when the option type for deserializing is not supported