| 598 | } |
| 599 | |
| 600 | MMKV_JNI jboolean encodeDouble(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jdouble value) { |
| 601 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
| 602 | if (kv && oKey) { |
| 603 | string key = jstring2string(env, oKey); |
| 604 | return (jboolean) kv->set((double) value, key); |
| 605 | } |
| 606 | return (jboolean) false; |
| 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); |
nothing calls this directly
no test coverage detected