| 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); |
| 269 | if (kv && oKey) { |
| 270 | auto key = string(oKey); |
| 271 | return kv->set((int64_t) value, key, expiration); |
| 272 | } |
| 273 | return false; |
| 274 | } |
| 275 | |
| 276 | MMKV_EXPORT int64_t decodeInt64(void *handle, const char *oKey, int64_t defaultValue) { |
| 277 | MMKV *kv = static_cast<MMKV *>(handle); |