| 616 | } |
| 617 | |
| 618 | MMKV_JNI jdouble decodeDouble(JNIEnv *env, jobject, jlong handle, jstring oKey, jdouble defaultValue) { |
| 619 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
| 620 | if (kv && oKey) { |
| 621 | string key = jstring2string(env, oKey); |
| 622 | return (jdouble) kv->getDouble(key, defaultValue); |
| 623 | } |
| 624 | return defaultValue; |
| 625 | } |
| 626 | |
| 627 | MMKV_JNI jboolean encodeString(JNIEnv *env, jobject, jlong handle, jstring oKey, jstring oValue) { |
| 628 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
nothing calls this directly
no test coverage detected