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

Function decodeInt

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

Source from the content-addressed store, hash-verified

535}
536
537MMKV_JNI jint decodeInt(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jint defaultValue) {
538 MMKV *kv = reinterpret_cast<MMKV *>(handle);
539 if (kv && oKey) {
540 string key = jstring2string(env, oKey);
541 return (jint) kv->getInt32(key, defaultValue);
542 }
543 return defaultValue;
544}
545
546MMKV_JNI jboolean encodeLong(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jlong value) {
547 MMKV *kv = reinterpret_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 2

jstring2stringFunction · 0.70
getInt32Method · 0.45

Tested by

no test coverage detected