Template Function MessageSerialization::serialize_field(const INTROSPECTION_C_MEMBER *, void *, cbor::TxStream&)

Function Documentation

template<typename T>
void MessageSerialization::serialize_field(const INTROSPECTION_C_MEMBER *member, void *field, cbor::TxStream &stream)

Serialize 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 variable length sequence. 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 origin memory address of the elementary data

  • stream – The stream used to send data