Template Function MessageSerialization::deserialize_field(const INTROSPECTION_CPP_MEMBER *, void *, cbor::RxStream&)

Function Documentation

template<typename T>
void MessageSerialization::deserialize_field(const INTROSPECTION_CPP_MEMBER *member, void *field, cbor::RxStream &stream)

Deserialize a C++ field.

The type support introspection information is used to know if a specific data type is a single item, a sequence or a vector. Based on this conclusion a specific interpretation is passed to the stream.

Parameters:
  • member – Pointer to the member containing type support informations

  • field – Pointer to the destination memory address of the elementary data

  • stream – The stream used to receive data