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

Function optional_i64

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

Source from the content-addressed store, hash-verified

95inline std::string require_string(const Value & object, const std::string & key) {
96 return object.require(key).as_string();
97}
98
99inline int64_t optional_i64(const Value & object, const std::string & key, int64_t default_value) {
100 const auto * value = object.find(key);
101 return value != nullptr && value->is_number() ? value->as_i64() : default_value;
102}
103

Callers 15

parse_configFunction · 0.85
parse_rope_scalingFunction · 0.85
parse_lm_configFunction · 0.85
parse_configFunction · 0.85
parse_qwen_commonFunction · 0.85
parse_planner_configFunction · 0.85
parse_diffusion_configFunction · 0.85
parse_vae_configFunction · 0.85
parse_tokenizer_configFunction · 0.85
parse_decoder_configFunction · 0.85

Calls 3

is_numberMethod · 0.80
as_i64Method · 0.80
findMethod · 0.45

Tested by

no test coverage detected