Skip to navigation

holoscan::channel_internal::InlinePayloadReceiveGuard

Beta
View as Markdown

Keep one received inline payload borrowed through verification and materialization.

#include <holoscan/channel_internal/endpoint_interfaces.hpp>

Constructors

InlinePayloadReceiveGuard

HOLOSCAN_CORE_EXPORT holoscan::channel_internal::InlinePayloadReceiveGuard::InlinePayloadReceiveGuard(
std::span<const std::byte> payload,
SampleMetadata metadata
) noexcept

Construct a guard for one active subscriber payload loan.

Parameters

subscriber
InlinePayloadSubscriber &

Subscriber whose active loan will be released by this guard.

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

Exact used payload prefix borrowed from the transport.

metadata
SampleMetadata

Metadata carried by the borrowed sample.

Destructor

~InlinePayloadReceiveGuard

HOLOSCAN_CORE_EXPORT holoscan::channel_internal::InlinePayloadReceiveGuard::~InlinePayloadReceiveGuard() noexcept

Release the active subscriber payload loan, if any.


Assignment operators

operator=

HOLOSCAN_CORE_EXPORT InlinePayloadReceiveGuard & holoscan::channel_internal::InlinePayloadReceiveGuard::operator=(
) noexcept

Replace this guard’s payload loan with another guard’s loan.

Returns: Reference to this guard after releasing its previous loan.

Parameters

other
InlinePayloadReceiveGuard &&

Guard whose loan ownership is transferred.


Methods

payload

std::span<const std::byte> holoscan::channel_internal::InlinePayloadReceiveGuard::payload() const noexcept

Return the exact used payload prefix while this guard remains live.

Returns: Borrowed transport bytes, or an empty span after a move.

metadata

const SampleMetadata & holoscan::channel_internal::InlinePayloadReceiveGuard::metadata() const noexcept

Return the metadata carried by the borrowed sample.

Returns: Immutable sample metadata.


Member variables

NameTypeDescription
subscriber_InlinePayloadSubscriber *
payload_std::span< const std::byte >
metadata_SampleMetadata