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