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

Function encodeInt64_v2

Android/MMKV/mmkv/src/main/cpp/flutter-bridge.cpp:289–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289MMKV_EXPORT bool encodeInt64_v2(void *handle, const char *oKey, int64_t value, uint32_t expiration) {
290 MMKV *kv = static_cast<MMKV *>(handle);
291 if (kv && oKey) {
292 auto key = string(oKey);
293 return kv->set((int64_t) value, key, expiration);
294 }
295 return false;
296}
297
298MMKV_EXPORT int64_t decodeInt64(void *handle, const char *oKey, int64_t defaultValue) {
299 MMKV *kv = static_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected