Skip to navigation

holoscan::config::try_encode_semantic_value_v1

Beta
View as Markdown
HOLOSCAN_CONFIG_EXPORT ConfigResult<std::vector<std::byte>> holoscan::config::try_encode_semantic_value_v1(
ConfigView value,
SemanticEncodeOptions options = {}
)

Try to encode one value with the version-one typed semantic grammar.

Returns: Canonical typed bytes or a structured invalid-input/limit/allocation failure.

Parameters

value
ConfigView

Valid semantic value to encode.

options
SemanticEncodeOptionsDefaults to {}

Output byte bound checked before each append.