| 665 | } |
| 666 | |
| 667 | MMKV_EXPORT bool isFileValid(const char *mmapID, const char *rootPath) { |
| 668 | if (rootPath) { |
| 669 | auto root = string(rootPath); |
| 670 | if (root.length() > 0) { |
| 671 | return MMKV::isFileValid(mmapID, &root); |
| 672 | } |
| 673 | } |
| 674 | return MMKV::isFileValid(mmapID, nullptr); |
| 675 | } |
| 676 | |
| 677 | MMKV_EXPORT bool removeStorage(const char *mmapID, const char *rootPath) { |
| 678 | if (rootPath) { |
nothing calls this directly
no outgoing calls
no test coverage detected