Skip to navigation

holoscan::validate_received_schema_envelope

Beta
View as MarkdownOpen in Claude
inline expected<void, Error> holoscan::validate_received_schema_envelope(
const SchemaEnvelopeHeader &header,
const SchemaIdentity &expected_identity,
std::uint64_t expected_generation,
std::size_t received_payload_size,
std::uint32_t expected_abi_version = kSchemaEnvelopeABIVersion,
std::uint32_t expected_transport_profile_tag = 0U
)

Validate a peer schema envelope before payload verification.

Returns: Empty success or a protocol error; no payload bytes are exposed on failure.

Parameters

header
const SchemaEnvelopeHeader &

Received versioned envelope prefix.

expected_identity
const SchemaIdentity &

Exact identity bound during attachment.

expected_generation
std::uint64_t

Exact nonzero endpoint generation bound during attachment.

received_payload_size
std::size_t

Bytes present after the prefix.

expected_abi_version
std::uint32_tDefaults to kSchemaEnvelopeABIVersion

Exact supported schema envelope ABI.

expected_transport_profile_tag
std::uint32_tDefaults to 0U

Exact attached carriage profile tag.