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

Function encodeBool

Android/MMKV/mmkv/src/main/cpp/native-bridge.cpp:492–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492MMKV_JNI jboolean encodeBool(JNIEnv *env, jobject, jlong handle, jstring oKey, jboolean value) {
493 MMKV *kv = reinterpret_cast<MMKV *>(handle);
494 if (kv && oKey) {
495 string key = jstring2string(env, oKey);
496 return (jboolean) kv->set((bool) value, key);
497 }
498 return (jboolean) false;
499}
500
501MMKV_JNI jboolean encodeBool_2(JNIEnv *env, jobject, jlong handle, jstring oKey, jboolean value, jint expiration) {
502 MMKV *kv = reinterpret_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 2

jstring2stringFunction · 0.70
setMethod · 0.45

Tested by

no test coverage detected