| 229 | } |
| 230 | |
| 231 | MMKV_EXPORT bool encodeInt32(void *handle, const char *oKey, int32_t value) { |
| 232 | MMKV *kv = static_cast<MMKV *>(handle); |
| 233 | if (kv && oKey) { |
| 234 | auto key = string(oKey); |
| 235 | return kv->set((int32_t) value, key); |
| 236 | } |
| 237 | return false; |
| 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); |