| 247 | } |
| 248 | |
| 249 | MMKV_EXPORT int32_t decodeInt32(void *handle, const char *oKey, int32_t defaultValue) { |
| 250 | MMKV *kv = static_cast<MMKV *>(handle); |
| 251 | if (kv && oKey) { |
| 252 | auto key = string(oKey); |
| 253 | return kv->getInt32(key, defaultValue); |
| 254 | } |
| 255 | return defaultValue; |
| 256 | } |
| 257 | |
| 258 | MMKV_EXPORT bool encodeInt64(void *handle, const char *oKey, int64_t value) { |
| 259 | MMKV *kv = static_cast<MMKV *>(handle); |