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

Function encodeBool_2

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

Source from the content-addressed store, hash-verified

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);
503 if (kv && oKey) {
504 string key = jstring2string(env, oKey);
505 return (jboolean) kv->set((bool) value, key, (uint32_t) expiration);
506 }
507 return (jboolean) false;
508}
509
510MMKV_JNI jboolean decodeBool(JNIEnv *env, jobject, jlong handle, jstring oKey, jboolean defaultValue) {
511 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