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

Function encodeInt64_v2

OpenHarmony/MMKV/src/main/cpp/flutter-bridge.cpp:286–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected