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

Function parse_u32_option

src/framework/runtime/options.cpp:151–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151std::optional<uint32_t> parse_u32_option(
152 const std::unordered_map<std::string, std::string> & options,
153 std::initializer_list<std::string_view> keys) {
154 if (const auto match = find_option_match(options, keys)) {
155 return parse_u32_value(match->value, match->key);
156 }
157 return std::nullopt;
158}
159
160std::optional<uint64_t> parse_u64_option(
161 const std::unordered_map<std::string, std::string> & options,

Calls 2

find_option_matchFunction · 0.85
parse_u32_valueFunction · 0.85

Tested by

no test coverage detected