Skip to navigation

holoscan::channel_internal::admit_typed_frame

Beta
View as Markdown
template <typename T>
expected<void, Error> holoscan::channel_internal::admit_typed_frame(
) noexcept

Admit one received frame whose whole width is bit-cast into persistent endpoint scratch.

The written length and the producer’s claimed width are independent. Requiring both to equal sizeof(T) is what keeps a short frame from combining with bytes an earlier sample left in the reused scratch. A peer may claim the full width while submitting fewer bytes.

Returns: Success, or ErrorCode::kProtocolError when the frame does not cover every scratch byte.

Template parameters

T
typename

Typed payload reconstructed from the complete scratch array.

Parameters

received
const InlinePayloadReceiveResult &

Erased receive result carrying both the written length and the producer claim.