| 517 | } |
| 518 | |
| 519 | MMKV_JNI jboolean encodeInt(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jint value) { |
| 520 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
| 521 | if (kv && oKey) { |
| 522 | string key = jstring2string(env, oKey); |
| 523 | return (jboolean) kv->set((int32_t) value, key); |
| 524 | } |
| 525 | return (jboolean) false; |
| 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); |
nothing calls this directly
no test coverage detected