MCPcopy Create free account
hub / github.com/Tencent/MMKV / decodeBool

Function decodeBool

OpenHarmony/MMKV/src/main/cpp/flutter-bridge.cpp:241–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241MMKV_EXPORT bool decodeBool(void *handle, const char *oKey, bool defaultValue) {
242 MMKV *kv = static_cast<MMKV *>(handle);
243 if (kv && oKey) {
244 auto key = string(oKey);
245 return kv->getBool(key, defaultValue);
246 }
247 return defaultValue;
248}
249
250MMKV_EXPORT bool encodeInt32(void *handle, const char *oKey, int32_t value) {
251 MMKV *kv = static_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 1

getBoolMethod · 0.45

Tested by

no test coverage detected