| 248 | } |
| 249 | |
| 250 | MMKV_EXPORT bool encodeInt32(void *handle, const char *oKey, int32_t value) { |
| 251 | MMKV *kv = static_cast<MMKV *>(handle); |
| 252 | if (kv && oKey) { |
| 253 | auto key = string(oKey); |
| 254 | return kv->set((int32_t) value, key); |
| 255 | } |
| 256 | return false; |
| 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); |