holoscan::CodecRegistry
holoscan::CodecRegistry
holoscan::CodecRegistry
Class to set codecs for data types.
This class is used to set codecs (serializer + deserializer) for data types.
Get the codec function pair.
Returns: The reference to the Codec object.
Parameters
The type index of the parameter.
Get the serializer function.
Returns: The reference to the Serializer function.
Parameters
The name of the codec.
Get the deserializer function.
Returns: The reference to the Deserializer function.
Parameters
The name of the codec.
Get the std::type_index corresponding to a codec name.
Returns: The std::type_index corresponding to the name.
Parameters
The name of the codec.
Get the codec name corresponding to a std::type_index.
Returns: The name of the codec.
Parameters
The std::type_index corresponding to the parameter.
Add a codec for the type.
Template parameters
The type of the parameter.
Parameters
A pair containing a serialization function and deserialization function.
The name of the codec to add.
If true, any existing codec with matching codec_name will be overwritten.
Get the instance object.
Returns: The reference to the CodecRegistry instance.
Serialize the message object.
Parameters
The message to serialize.
The serialization endpoint (buffer).
Deserialize the message object.
Template parameters
The data type within the message.
Parameters
The serialization endpoint (buffer).