MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / numericConfigRewrite

Function numericConfigRewrite

src/config.cpp:2351–2361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2349}
2350
2351static void numericConfigRewrite(typeData data, const char *name, struct rewriteConfigState *state) {
2352 long long value = 0;
2353
2354 GET_NUMERIC_TYPE(value)
2355
2356 if (data.numeric.is_memory) {
2357 rewriteConfigBytesOption(state, name, value, data.numeric.default_value);
2358 } else {
2359 rewriteConfigNumericalOption(state, name, value, data.numeric.default_value);
2360 }
2361}
2362
2363#define INTEGER_CONFIG 0
2364#define MEMORY_CONFIG 1

Callers

nothing calls this directly

Calls 2

rewriteConfigBytesOptionFunction · 0.85

Tested by

no test coverage detected