| 275 | } |
| 276 | |
| 277 | MMKV_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 | |
| 286 | MMKV_EXPORT bool encodeInt64_v2(void *handle, const char *oKey, int64_t value, uint32_t expiration) { |
| 287 | MMKV *kv = static_cast<MMKV *>(handle); |