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

Function encodeLong_2

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

Source from the content-addressed store, hash-verified

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);
557 if (kv && oKey) {
558 string key = jstring2string(env, oKey);
559 return (jboolean) kv->set((int64_t) value, key, (uint32_t) expiration);
560 }
561 return (jboolean) false;
562}
563
564MMKV_JNI jlong decodeLong(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jlong defaultValue) {
565 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