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

Function decodeDouble

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

Source from the content-addressed store, hash-verified

616}
617
618MMKV_JNI jdouble decodeDouble(JNIEnv *env, jobject, jlong handle, jstring oKey, jdouble defaultValue) {
619 MMKV *kv = reinterpret_cast<MMKV *>(handle);
620 if (kv && oKey) {
621 string key = jstring2string(env, oKey);
622 return (jdouble) kv->getDouble(key, defaultValue);
623 }
624 return defaultValue;
625}
626
627MMKV_JNI jboolean encodeString(JNIEnv *env, jobject, jlong handle, jstring oKey, jstring oValue) {
628 MMKV *kv = reinterpret_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 2

jstring2stringFunction · 0.70
getDoubleMethod · 0.45

Tested by

no test coverage detected