Skip to navigation

holoscan::config::ConfigCodec< bool >

Beta
View as Markdown

Provide the built-in Boolean codec.

#include <holoscan/config/codec.hpp>

Static methods

decode

static ConfigResult<bool> holoscan::config::ConfigCodec<bool>::decode(
ConfigView view,
const DecodeOptions &,
)

Decode an exact Boolean semantic value.

Returns: The Boolean or CONFIG_TYPE_MISMATCH.

Parameters

view
ConfigView

Semantic value to inspect.

encode

static ConfigResult<ConfigValue> holoscan::config::ConfigCodec<bool>::encode(
bool value,
const EncodeOptions &,
EncodeContext &context
)

Encode a Boolean after charging its owning node allocation.

Returns: The immutable Boolean value or a structured budget/allocation failure.

Parameters

value
bool

Boolean to encode.

context
EncodeContext &

Borrowed monotonic encode context.