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

Function optional_i32

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

Source from the content-addressed store, hash-verified

100 const auto * value = object.find(key);
101 return value != nullptr && value->is_number() ? value->as_i64() : default_value;
102}
103
104inline int64_t optional_nullable_i64(const Value & object, const std::string & key, int64_t default_value) {
105 const auto * value = object.find(key);
106 if (value == nullptr || value->is_null()) {
107 return default_value;

Callers 2

load_server_configFunction · 0.85

Calls 1

optional_i64Function · 0.85

Tested by

no test coverage detected