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