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

Function decodeBool

flutter/mmkv_linux/linux/flutter-bridge.cpp:222–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222MMKV_EXPORT bool decodeBool(void *handle, const char *oKey, bool defaultValue) {
223 MMKV *kv = static_cast<MMKV *>(handle);
224 if (kv && oKey) {
225 auto key = string(oKey);
226 return kv->getBool(key, defaultValue);
227 }
228 return defaultValue;
229}
230
231MMKV_EXPORT bool encodeInt32(void *handle, const char *oKey, int32_t value) {
232 MMKV *kv = static_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 1

getBoolMethod · 0.45

Tested by

no test coverage detected