Skip to navigation

holoscan::PayloadDescriptor

Beta
View as Markdown

Runtime payload reference associated with a sample envelope.

This is the production-direction shape that separates payload identity from temporal/framing metadata. Today it is losslessly derived from the 72-byte same-process ChannelSampleDescriptor. Cross-process Tensor paths carry a transport-opaque external-buffer reference without changing Sample<T>. The local and opaque references share storage; payload_kind is the active-arm discriminator.

#include <holoscan/types.hpp>

Methods

is_local_buffer

bool holoscan::PayloadDescriptor::is_local_buffer() const noexcept

Return whether this payload references a same-process sidecar record.

is_buffer_handle

bool holoscan::PayloadDescriptor::is_buffer_handle() const noexcept

Return whether this payload has a structurally valid opaque buffer reference.

Returns: True when the buffer-reference union arm is active and nonempty.


Member variables

NameTypeDescription
payload_kindChannelPayloadKindPayload representation selected by graph finalization.
flagsstd::uint32_tRuntime-defined payload flags.
schema_idSchemaIdComplete compact schema identity for schema-backed payloads.
sequencestd::uint64_tProducer sequence number.
byte_sizestd::uint64_tLogical payload byte size.
localLocalPayloadReferenceSame-process sidecar reference, valid when payload_kind is kLocalBufferDescriptor.
bufferBufferHandlePayloadReferenceCross-process opaque buffer reference, valid when payload_kind is kBufferHandle.
“union holoscan::PayloadDescriptor