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

Function decodeLong

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

Source from the content-addressed store, hash-verified

562}
563
564MMKV_JNI jlong decodeLong(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jlong defaultValue) {
565 MMKV *kv = reinterpret_cast<MMKV *>(handle);
566 if (kv && oKey) {
567 string key = jstring2string(env, oKey);
568 return (jlong) kv->getInt64(key, defaultValue);
569 }
570 return defaultValue;
571}
572
573MMKV_JNI jboolean encodeFloat(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jfloat value) {
574 MMKV *kv = reinterpret_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 2

jstring2stringFunction · 0.70
getInt64Method · 0.45

Tested by

no test coverage detected