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

Function encodeBool

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

Source from the content-addressed store, hash-verified

221}
222
223MMKV_EXPORT bool encodeBool(void *handle, const char *oKey, bool value) {
224 MMKV *kv = static_cast<MMKV *>(handle);
225 if (kv && oKey) {
226 auto key = string(oKey);
227 return kv->set((bool) value, key);
228 }
229 return false;
230}
231
232MMKV_EXPORT bool encodeBool_v2(void *handle, const char *oKey, bool value, uint32_t expiration) {
233 MMKV *kv = static_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected