| 1022 | } |
| 1023 | |
| 1024 | MMKV_JNI jint writeValueToNB(JNIEnv *env, jobject instance, jlong handle, jstring oKey, jlong pointer, jint size) { |
| 1025 | MMKV *kv = reinterpret_cast<MMKV *>(handle); |
| 1026 | if (kv && oKey) { |
| 1027 | string key = jstring2string(env, oKey); |
| 1028 | return kv->writeValueToBuffer(key, reinterpret_cast<void *>(pointer), size); |
| 1029 | } |
| 1030 | return -1; |
| 1031 | } |
| 1032 | |
| 1033 | MMKV_JNI void setWantsContentChangeNotify(JNIEnv *env, jclass type, jboolean notify) { |
| 1034 | g_jniHandler.setWantsContentChange(notify == JNI_TRUE); |
nothing calls this directly
no test coverage detected