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

Function encodeFloat

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

Source from the content-addressed store, hash-verified

571}
572
573MMKV_JNI jboolean encodeFloat(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jfloat value) {
574 MMKV *kv = reinterpret_cast<MMKV *>(handle);
575 if (kv && oKey) {
576 string key = jstring2string(env, oKey);
577 return (jboolean) kv->set((float) value, key);
578 }
579 return (jboolean) false;
580}
581
582MMKV_JNI jboolean encodeFloat_2(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jfloat value, jint expiration) {
583 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