| 589 | } |
| 590 | |
| 591 | MMKV_JNI jfloat decodeFloat(JNIEnv *env, jobject, jlong handle, jstring oKey, jfloat defaultValue) { |
| 592 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
| 593 | if (kv && oKey) { |
| 594 | string key = jstring2string(env, oKey); |
| 595 | return (jfloat) kv->getFloat(key, defaultValue); |
| 596 | } |
| 597 | return defaultValue; |
| 598 | } |
| 599 | |
| 600 | MMKV_JNI jboolean encodeDouble(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jdouble value) { |
| 601 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
nothing calls this directly
no test coverage detected