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

Function decodeBool

Android/MMKV/mmkv/src/main/cpp/flutter-bridge.cpp:244–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

getBoolMethod · 0.45

Tested by

no test coverage detected