| 523 | } |
| 524 | |
| 525 | MMKV_EXPORT void removeValuesForKeys(void *handle, char **keyArray, uint32_t *sizeArray, uint64_t count) { |
| 526 | MMKV *kv = static_cast<MMKV *>(handle); |
| 527 | if (kv && keyArray && sizeArray && count > 0) { |
| 528 | vector<string> arrKeys; |
| 529 | arrKeys.reserve(count); |
| 530 | for (uint64_t index = 0; index < count; index++) { |
| 531 | if (sizeArray[index] > 0 && keyArray[index]) { |
| 532 | arrKeys.emplace_back(keyArray[index], sizeArray[index]); |
| 533 | } |
| 534 | } |
| 535 | if (!arrKeys.empty()) { |
| 536 | kv->removeValuesForKeys(arrKeys); |
| 537 | } |
| 538 | } |
| 539 | } |
| 540 | |
| 541 | MMKV_EXPORT void clearAll(void *handle, bool keepSpace) { |
| 542 | MMKV *kv = static_cast<MMKV *>(handle); |
nothing calls this directly
no test coverage detected