| 544 | } |
| 545 | |
| 546 | MMKV_JNI jboolean encodeLong(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jlong value) { |
| 547 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
| 548 | if (kv && oKey) { |
| 549 | string key = jstring2string(env, oKey); |
| 550 | return (jboolean) kv->set((int64_t) value, key); |
| 551 | } |
| 552 | return (jboolean) false; |
| 553 | } |
| 554 | |
| 555 | MMKV_JNI jboolean encodeLong_2(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jlong value, jint expiration) { |
| 556 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
nothing calls this directly
no test coverage detected