| 238 | } |
| 239 | |
| 240 | MMKV_EXPORT bool encodeInt32_v2(void *handle, const char *oKey, int32_t value, uint32_t expiration) { |
| 241 | MMKV *kv = static_cast<MMKV *>(handle); |
| 242 | if (kv && oKey) { |
| 243 | auto key = string(oKey); |
| 244 | return kv->set((int32_t) value, key, expiration); |
| 245 | } |
| 246 | return false; |
| 247 | } |
| 248 | |
| 249 | MMKV_EXPORT int32_t decodeInt32(void *handle, const char *oKey, int32_t defaultValue) { |
| 250 | MMKV *kv = static_cast<MMKV *>(handle); |