| 499 | } |
| 500 | |
| 501 | MMKV_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 | |
| 510 | MMKV_JNI jboolean decodeBool(JNIEnv *env, jobject, jlong handle, jstring oKey, jboolean defaultValue) { |
| 511 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
nothing calls this directly
no test coverage detected