MCPcopy Create free account
hub / github.com/Tencent/MMKV / removeValuesForKeys

Function removeValuesForKeys

OpenHarmony/MMKV/src/main/cpp/flutter-bridge.cpp:525–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525MMKV_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
541MMKV_EXPORT void clearAll(void *handle, bool keepSpace) {
542 MMKV *kv = static_cast<MMKV *>(handle);

Callers

nothing calls this directly

Calls 1

removeValuesForKeysMethod · 0.45

Tested by

no test coverage detected