| 211 | } |
| 212 | |
| 213 | MMKV_EXPORT bool encodeBool_v2(void *handle, const char *oKey, bool value, uint32_t expiration) { |
| 214 | MMKV *kv = static_cast<MMKV *>(handle); |
| 215 | if (kv && oKey) { |
| 216 | auto key = string(oKey); |
| 217 | return kv->set((bool) value, key, expiration); |
| 218 | } |
| 219 | return false; |
| 220 | } |
| 221 | |
| 222 | MMKV_EXPORT bool decodeBool(void *handle, const char *oKey, bool defaultValue) { |
| 223 | MMKV *kv = static_cast<MMKV *>(handle); |