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

Function optional_string_array

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

Source from the content-addressed store, hash-verified

190 values.emplace(name, value.as_i64());
191 }
192 return values;
193}
194
195inline std::vector<int64_t> optional_i64_array(const Value & object, const std::string & key) {
196 std::vector<int64_t> values;
197 const auto * value = object.find(key);
198 if (value == nullptr || !value->is_array()) {
199 return values;
200 }
201 return number_array_as<int64_t>(*value);
202}
203
204inline std::vector<int64_t> optional_i64_array(
205 const Value & object,

Callers 1

parse_diffusion_configFunction · 0.85

Calls 2

is_arrayMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected