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

Function encodeInt_2

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

Source from the content-addressed store, hash-verified

526}
527
528MMKV_JNI jboolean encodeInt_2(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jint value, jint expiration) {
529 MMKV *kv = reinterpret_cast<MMKV *>(handle);
530 if (kv && oKey) {
531 string key = jstring2string(env, oKey);
532 return (jboolean) kv->set((int32_t) value, key, (uint32_t) expiration);
533 }
534 return (jboolean) false;
535}
536
537MMKV_JNI jint decodeInt(JNIEnv *env, jobject obj, jlong handle, jstring oKey, jint defaultValue) {
538 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