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

Function encodeDouble

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

Source from the content-addressed store, hash-verified

598}
599
600MMKV_JNI jboolean encodeDouble(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jdouble value) {
601 MMKV *kv = reinterpret_cast<MMKV *>(handle);
602 if (kv && oKey) {
603 string key = jstring2string(env, oKey);
604 return (jboolean) kv->set((double) value, key);
605 }
606 return (jboolean) false;
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);

Callers

nothing calls this directly

Calls 2

jstring2stringFunction · 0.70
setMethod · 0.45

Tested by

no test coverage detected