| 202 | } |
| 203 | |
| 204 | MMKV_EXPORT bool encodeBool(void *handle, const char *oKey, bool value) { |
| 205 | MMKV *kv = static_cast<MMKV *>(handle); |
| 206 | if (kv && oKey) { |
| 207 | auto key = string(oKey); |
| 208 | return kv->set((bool) value, key); |
| 209 | } |
| 210 | return false; |
| 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); |