holoscan::ForeignOperatorResult
Return one allocation-free result across a foreign Operator callback boundary.
The callback retains ownership of message. For a failure result, its storage must remain valid until the invoking ForeignOperatorCore method returns. Core copies at most kForeignOperatorMessageCapacity bytes after the callback returns and never reads the pointer for a successful result. message_size must not exceed the readable storage beginning at message; the capacity clamp is not pointer validation.
Static methods
success
Construct a successful callback result.
Returns: The allocation-free success record.
failure
Construct one borrowed failure record
Overload 2
Construct one borrowed failure record.
Returns: Failure record whose message is clamped when Core consumes it.
Parameters
Non-success Core error category.
Callback-owned bytes valid until the invoking ForeignOperatorCore method returns.
Number of readable bytes beginning at detail.
Construct one borrowed failure record from static literal storage.