MCPcopy Create free account
hub / github.com/Tencent/MMKV / writeValueToNB

Function writeValueToNB

Android/MMKV/mmkv/src/main/cpp/native-bridge.cpp:1024–1031  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1022}
1023
1024MMKV_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
1033MMKV_JNI void setWantsContentChangeNotify(JNIEnv *env, jclass type, jboolean notify) {
1034 g_jniHandler.setWantsContentChange(notify == JNI_TRUE);

Callers

nothing calls this directly

Calls 2

writeValueToBufferMethod · 0.80
jstring2stringFunction · 0.70

Tested by

no test coverage detected