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

Function encodeDouble_2

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

Source from the content-addressed store, hash-verified

607}
608
609MMKV_JNI jboolean encodeDouble_2(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jdouble value, jint expiration) {
610 MMKV *kv = reinterpret_cast<MMKV *>(handle);
611 if (kv && oKey) {
612 string key = jstring2string(env, oKey);
613 return (jboolean) kv->set((double) value, key, (uint32_t) expiration);
614 }
615 return (jboolean) false;
616}
617
618MMKV_JNI jdouble decodeDouble(JNIEnv *env, jobject, jlong handle, jstring oKey, jdouble defaultValue) {
619 MMKV *kv = reinterpret_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 2

jstring2stringFunction · 0.70
setMethod · 0.45

Tested by

no test coverage detected