| 260 | } |
| 261 | |
| 262 | MMKV_EXPORT bool encodeInt32_v2(void *handle, const char *oKey, int32_t value, uint32_t expiration) { |
| 263 | MMKV *kv = static_cast<MMKV *>(handle); |
| 264 | if (kv && oKey) { |
| 265 | auto key = string(oKey); |
| 266 | return kv->set((int32_t) value, key, expiration); |
| 267 | } |
| 268 | return false; |
| 269 | } |
| 270 | |
| 271 | MMKV_EXPORT int32_t decodeInt32(void *handle, const char *oKey, int32_t defaultValue) { |
| 272 | MMKV *kv = static_cast<MMKV *>(handle); |