Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::com::entry::EntryDeserializer Class Reference

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

#include <entry_deserializer.h>

Static Public Member Functions

static std::unique_ptr< EntryDeserialize (const std::vector< uint8_t > &payload, std::size_t &offset, uint8_t &numberOfFirstOptions, uint8_t &numberOfSecondOptions)
 Deserialize an entry payload. More...
 

Detailed Description

A helper class for deserialzing an entry payload.

Member Function Documentation

◆ 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
payloadSerialized entry payload byte array
offsetDeserializing offset in the payload
[out]numberOfFirstOptionsNumber of first options that the deserialized entry have
[out]numberOfSecondOptionsNumber of second options that the deserialized entry have
Returns
Deserialized entry
Exceptions
std::out_of_rangeThrows when the entry type for deserializing is not supported