| 220 | } |
| 221 | |
| 222 | MMKV_EXPORT bool decodeBool(void *handle, const char *oKey, bool defaultValue) { |
| 223 | MMKV *kv = static_cast<MMKV *>(handle); |
| 224 | if (kv && oKey) { |
| 225 | auto key = string(oKey); |
| 226 | return kv->getBool(key, defaultValue); |
| 227 | } |
| 228 | return defaultValue; |
| 229 | } |
| 230 | |
| 231 | MMKV_EXPORT bool encodeInt32(void *handle, const char *oKey, int32_t value) { |
| 232 | MMKV *kv = static_cast<MMKV *>(handle); |