| 599 | } |
| 600 | |
| 601 | MMKV_EXPORT bool restoreOne(const char *mmapID, const char *srcDir, const char *rootPath) { |
| 602 | if (rootPath) { |
| 603 | auto root = string(rootPath); |
| 604 | if (root.length() > 0) { |
| 605 | return MMKV::restoreOneFromDirectory(mmapID, srcDir, &root); |
| 606 | } |
| 607 | } |
| 608 | return MMKV::restoreOneFromDirectory(mmapID, srcDir); |
| 609 | } |
| 610 | |
| 611 | MMKV_EXPORT uint64_t backupAll(const char *dstDir/*, const char *rootPath*/) { |
| 612 | // historically Android mistakenly use mmapKey as mmapID |
nothing calls this directly
no test coverage detected