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

Function decodeFloat

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

Source from the content-addressed store, hash-verified

589}
590
591MMKV_JNI jfloat decodeFloat(JNIEnv *env, jobject, jlong handle, jstring oKey, jfloat defaultValue) {
592 MMKV *kv = reinterpret_cast<MMKV *>(handle);
593 if (kv && oKey) {
594 string key = jstring2string(env, oKey);
595 return (jfloat) kv->getFloat(key, defaultValue);
596 }
597 return defaultValue;
598}
599
600MMKV_JNI jboolean encodeDouble(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jdouble value) {
601 MMKV *kv = reinterpret_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 2

jstring2stringFunction · 0.70
getFloatMethod · 0.45

Tested by

no test coverage detected