| 284 | } |
| 285 | |
| 286 | MMKV_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 | |
| 295 | MMKV_EXPORT int64_t decodeInt64(void *handle, const char *oKey, int64_t defaultValue) { |
| 296 | MMKV *kv = static_cast<MMKV *>(handle); |