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

Function encodeLong

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

Source from the content-addressed store, hash-verified

544}
545
546MMKV_JNI jboolean encodeLong(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jlong value) {
547 MMKV *kv = reinterpret_cast<MMKV *>(handle);
548 if (kv && oKey) {
549 string key = jstring2string(env, oKey);
550 return (jboolean) kv->set((int64_t) value, key);
551 }
552 return (jboolean) false;
553}
554
555MMKV_JNI jboolean encodeLong_2(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jlong value, jint expiration) {
556 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