MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / getValue

Method getValue

Devices/unphone/Source/InitBoot.cpp:22–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 tt::Preferences preferences = tt::Preferences("unphone");
21
22 int32_t getValue(const char* key) {
23 int32_t value = 0;
24 preferences.optInt32(key, value);
25 return value;
26 }
27
28 void setValue(const char* key, int32_t value) {
29 preferences.putInt32(key, value);

Callers

nothing calls this directly

Calls 1

optInt32Method · 0.45

Tested by

no test coverage detected