| 607 | } |
| 608 | |
| 609 | MMKV_JNI jboolean encodeDouble_2(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jdouble value, jint expiration) { |
| 610 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
| 611 | if (kv && oKey) { |
| 612 | string key = jstring2string(env, oKey); |
| 613 | return (jboolean) kv->set((double) value, key, (uint32_t) expiration); |
| 614 | } |
| 615 | return (jboolean) false; |
| 616 | } |
| 617 | |
| 618 | MMKV_JNI jdouble decodeDouble(JNIEnv *env, jobject, jlong handle, jstring oKey, jdouble defaultValue) { |
| 619 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
nothing calls this directly
no test coverage detected