| 535 | } |
| 536 | |
| 537 | MMKV_JNI jint decodeInt(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jint defaultValue) { |
| 538 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
| 539 | if (kv && oKey) { |
| 540 | string key = jstring2string(env, oKey); |
| 541 | return (jint) kv->getInt32(key, defaultValue); |
| 542 | } |
| 543 | return defaultValue; |
| 544 | } |
| 545 | |
| 546 | MMKV_JNI jboolean encodeLong(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jlong value) { |
| 547 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
nothing calls this directly
no test coverage detected