| 278 | } |
| 279 | |
| 280 | MMKV_EXPORT bool encodeInt64(void *handle, const char *oKey, int64_t value) { |
| 281 | MMKV *kv = static_cast<MMKV *>(handle); |
| 282 | if (kv && oKey) { |
| 283 | auto key = string(oKey); |
| 284 | return kv->set((int64_t) value, key); |
| 285 | } |
| 286 | return false; |
| 287 | } |
| 288 | |
| 289 | MMKV_EXPORT bool encodeInt64_v2(void *handle, const char *oKey, int64_t value, uint32_t expiration) { |
| 290 | MMKV *kv = static_cast<MMKV *>(handle); |