| 266 | } |
| 267 | |
| 268 | MMKV_EXPORT int32_t decodeInt32(void *handle, const char *oKey, int32_t defaultValue) { |
| 269 | MMKV *kv = static_cast<MMKV *>(handle); |
| 270 | if (kv && oKey) { |
| 271 | auto key = string(oKey); |
| 272 | return kv->getInt32(key, defaultValue); |
| 273 | } |
| 274 | return defaultValue; |
| 275 | } |
| 276 | |
| 277 | MMKV_EXPORT bool encodeInt64(void *handle, const char *oKey, int64_t value) { |
| 278 | MMKV *kv = static_cast<MMKV *>(handle); |