| 256 | } |
| 257 | |
| 258 | MMKV_EXPORT bool encodeInt64(void *handle, const char *oKey, int64_t value) { |
| 259 | MMKV *kv = static_cast<MMKV *>(handle); |
| 260 | if (kv && oKey) { |
| 261 | auto key = string(oKey); |
| 262 | return kv->set((int64_t) value, key); |
| 263 | } |
| 264 | return false; |
| 265 | } |
| 266 | |
| 267 | MMKV_EXPORT bool encodeInt64_v2(void *handle, const char *oKey, int64_t value, uint32_t expiration) { |
| 268 | MMKV *kv = static_cast<MMKV *>(handle); |