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

Function encodeBool_v2

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

Source from the content-addressed store, hash-verified

211}
212
213MMKV_EXPORT bool encodeBool_v2(void *handle, const char *oKey, bool value, uint32_t expiration) {
214 MMKV *kv = static_cast<MMKV *>(handle);
215 if (kv && oKey) {
216 auto key = string(oKey);
217 return kv->set((bool) value, key, expiration);
218 }
219 return false;
220}
221
222MMKV_EXPORT bool decodeBool(void *handle, const char *oKey, bool defaultValue) {
223 MMKV *kv = static_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected