| 580 | } |
| 581 | |
| 582 | MMKV_JNI jboolean encodeFloat_2(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jfloat value, jint expiration) { |
| 583 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
| 584 | if (kv && oKey) { |
| 585 | string key = jstring2string(env, oKey); |
| 586 | return (jboolean) kv->set((float) value, key, (uint32_t) expiration); |
| 587 | } |
| 588 | return (jboolean) false; |
| 589 | } |
| 590 | |
| 591 | MMKV_JNI jfloat decodeFloat(JNIEnv *env, jobject, jlong handle, jstring oKey, jfloat defaultValue) { |
| 592 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
nothing calls this directly
no test coverage detected