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

Function encodeInt64

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

Source from the content-addressed store, hash-verified

275}
276
277MMKV_EXPORT bool encodeInt64(void *handle, const char *oKey, int64_t value) {
278 MMKV *kv = static_cast<MMKV *>(handle);
279 if (kv && oKey) {
280 auto key = string(oKey);
281 return kv->set((int64_t) value, key);
282 }
283 return false;
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);

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected