| 571 | } |
| 572 | |
| 573 | MMKV_JNI jboolean encodeFloat(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jfloat value) { |
| 574 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
| 575 | if (kv && oKey) { |
| 576 | string key = jstring2string(env, oKey); |
| 577 | return (jboolean) kv->set((float) value, key); |
| 578 | } |
| 579 | return (jboolean) false; |
| 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); |
nothing calls this directly
no test coverage detected