| 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); |
| 557 | if (kv && oKey) { |
| 558 | string key = jstring2string(env, oKey); |
| 559 | return (jboolean) kv->set((int64_t) value, key, (uint32_t) expiration); |
| 560 | } |
| 561 | return (jboolean) false; |
| 562 | } |
| 563 | |
| 564 | MMKV_JNI jlong decodeLong(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jlong defaultValue) { |
| 565 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
nothing calls this directly
no test coverage detected