| 508 | } |
| 509 | |
| 510 | MMKV_JNI jboolean decodeBool(JNIEnv *env, jobject, jlong handle, jstring oKey, jboolean defaultValue) { |
| 511 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
| 512 | if (kv && oKey) { |
| 513 | string key = jstring2string(env, oKey); |
| 514 | return (jboolean) kv->getBool(key, defaultValue); |
| 515 | } |
| 516 | return defaultValue; |
| 517 | } |
| 518 | |
| 519 | MMKV_JNI jboolean encodeInt(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jint value) { |
| 520 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
nothing calls this directly
no test coverage detected