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

Function optional_f32_array

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

Source from the content-addressed store, hash-verified

181}
182
183inline std::unordered_map<std::string, int64_t> require_i64_object(const Value & object, const std::string & key) {
184 std::unordered_map<std::string, int64_t> values;
185 const auto & map = object.require(key).as_object();
186 values.reserve(map.size());
187 for (const auto & [name, value] : map) {
188 values.emplace(name, value.as_i64());
189 }
190 return values;
191}
192
193inline std::vector<int64_t> optional_i64_array(const Value & object, const std::string & key) {

Callers 2

parse_configFunction · 0.85
parse_rope_scalingFunction · 0.85

Calls 2

is_arrayMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected