| 242 | } |
| 243 | |
| 244 | MMKV_EXPORT bool decodeBool(void *handle, const char *oKey, bool defaultValue) { |
| 245 | MMKV *kv = static_cast<MMKV *>(handle); |
| 246 | if (kv && oKey) { |
| 247 | auto key = string(oKey); |
| 248 | return kv->getBool(key, defaultValue); |
| 249 | } |
| 250 | return defaultValue; |
| 251 | } |
| 252 | |
| 253 | MMKV_EXPORT bool encodeInt32(void *handle, const char *oKey, int32_t value) { |
| 254 | MMKV *kv = static_cast<MMKV *>(handle); |