Skip to navigation

holoscan::SchemaCodecDescriptor

Beta
View as Markdown
template <typename T>

Carry process-local generated codec callbacks for one semantic type.

#include <holoscan/schema_package.hpp>

Template parameters

T
typename

Borrowed root or owning object-API type.


Types

Typedefs

NameDefinitionDescription
VerifyFunctionbool(*)(std::span< const std::byte >) noexceptVerify serialized bytes using the exact generated root verifier.
ParseFunctionconst T *(*)(std::span< const std::byte >) noexceptParse already verified bytes into a borrowed generated root view.
EncodeFunctionexpected< std::size_t, Error >(*)(const T &, std::span< std::byte >) noexceptSerialize one owning semantic value into caller-owned bounded storage.
MaterializeFunctionexpected< T, Error >(*)(std::span< const std::byte >) noexceptMaterialize one owning semantic value from already verified bytes.

Member variables

NameTypeDescription
verifyVerifyFunctionGenerated verifier callback.
parseParseFunctionOptional borrowed-root parser.
encodeEncodeFunctionOptional bounded owning encoder.
materializeMaterializeFunctionOptional owning materializer.