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

Function encodeBool

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

Source from the content-addressed store, hash-verified

202}
203
204MMKV_EXPORT bool encodeBool(void *handle, const char *oKey, bool value) {
205 MMKV *kv = static_cast<MMKV *>(handle);
206 if (kv && oKey) {
207 auto key = string(oKey);
208 return kv->set((bool) value, key);
209 }
210 return false;
211}
212
213MMKV_EXPORT bool encodeBool_v2(void *handle, const char *oKey, bool value, uint32_t expiration) {
214 MMKV *kv = static_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected