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

Callers 1

parse_diffusion_configFunction · 0.85

Calls 2

is_arrayMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected