Skip to navigation

holoscan::verify_and_parse_received_schema

Beta
View as Markdown
template <typename T>
expected<const T *, Error> holoscan::verify_and_parse_received_schema(
const SchemaPackageDescriptor<T> &package,
const SchemaEnvelopeHeader &header,
const SchemaIdentity &expected_identity,
std::uint64_t expected_generation,
std::span<const std::byte> payload,
std::uint32_t expected_abi_version = kSchemaEnvelopeABIVersion
)

Verify and parse one received generated-schema payload in protocol order.

A successful view remains valid only while payload is alive and unmodified.

Returns: Borrowed generated root view, or a protocol/local error without typed exposure.

Template parameters

T
typename

Semantic generated root/native type.

Parameters

package
const SchemaPackageDescriptor<T> &

Exact package bound at attachment.

header
const SchemaEnvelopeHeader &

Received versioned envelope prefix.

expected_identity
const SchemaIdentity &

Exact catalog identity bound at attachment.

expected_generation
std::uint64_t

Exact endpoint generation bound at attachment.

payload
std::span<const std::byte>

Received serialized payload bytes.