MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / optional_bool

Function optional_bool

include/engine/framework/io/json.h:111–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 return value->as_i64();
110}
111
112inline int optional_i32(const Value & object, const std::string & key, int default_value) {
113 return static_cast<int>(optional_i64(object, key, default_value));
114}
115
116inline float optional_f32(const Value & object, const std::string & key, float default_value) {
117 const auto * value = object.find(key);

Callers 15

parse_configFunction · 0.85
parse_lm_configFunction · 0.85
parse_dit_configFunction · 0.85
parse_configFunction · 0.85
parse_astral_configFunction · 0.85
parse_diffusion_configFunction · 0.85
resolve_adapter_scaleFunction · 0.85
parse_tokenizer_configFunction · 0.85
parse_decoder_configFunction · 0.85
parse_configFunction · 0.85
parse_processor_configFunction · 0.85
parse_configFunction · 0.85

Calls 3

is_boolMethod · 0.80
as_boolMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected