| 230 | } |
| 231 | |
| 232 | MMKV_EXPORT bool encodeBool_v2(void *handle, const char *oKey, bool value, uint32_t expiration) { |
| 233 | MMKV *kv = static_cast<MMKV *>(handle); |
| 234 | if (kv && oKey) { |
| 235 | auto key = string(oKey); |
| 236 | return kv->set((bool) value, key, expiration); |
| 237 | } |
| 238 | return false; |
| 239 | } |
| 240 | |
| 241 | MMKV_EXPORT bool decodeBool(void *handle, const char *oKey, bool defaultValue) { |
| 242 | MMKV *kv = static_cast<MMKV *>(handle); |