| 526 | } |
| 527 | |
| 528 | MMKV_JNI jboolean encodeInt_2(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jint value, jint expiration) { |
| 529 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
| 530 | if (kv && oKey) { |
| 531 | string key = jstring2string(env, oKey); |
| 532 | return (jboolean) kv->set((int32_t) value, key, (uint32_t) expiration); |
| 533 | } |
| 534 | return (jboolean) false; |
| 535 | } |
| 536 | |
| 537 | MMKV_JNI jint decodeInt(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jint defaultValue) { |
| 538 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
nothing calls this directly
no test coverage detected