| 224 | } |
| 225 | |
| 226 | MMKV_EXPORT bool encodeBool(void *handle, const char *oKey, bool value) { |
| 227 | MMKV *kv = static_cast<MMKV *>(handle); |
| 228 | if (kv && oKey) { |
| 229 | auto key = string(oKey); |
| 230 | return kv->set((bool) value, key); |
| 231 | } |
| 232 | return false; |
| 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); |