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