holoscan::CodecRegistry
holoscan::CodecRegistry
Class to set codecs for data types.
This class is used to set codecs (serializer + deserializer) for data types.
Constructors
CodecRegistry
Methods
get_codec
Get the codec function pair (with index)
Get the codec function pair (with codec name)
Get the codec function pair.
Returns: The reference to the Codec object.
Parameters
The type index of the parameter.
get_serializer
Get the serializer function (with codec name)
Get the serializer function (with index)
Get the serializer function.
Returns: The reference to the Serializer function.
Parameters
The name of the codec.
get_deserializer
Get the deserializer function (with codec name)
Get the deserializer function (with index)
Get the deserializer function.
Returns: The reference to the Deserializer function.
Parameters
The name of the codec.
name_to_index
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.
index_to_name
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_codec
Add a codec for the type (with codec)
Add a codec for the type (with codec and index)
Add a codec for the type
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.
Static methods
get_instance
Get the instance object.
Returns: The reference to the CodecRegistry instance.
serialize
Serialize the message object.
Parameters
The message to serialize.
The serialization endpoint (buffer).
deserialize
Deserialize the message object.
Template parameters
The data type within the message.
Parameters
The serialization endpoint (buffer).