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

Function restoreOne

Android/MMKV/mmkv/src/main/cpp/flutter-bridge.cpp:601–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599}
600
601MMKV_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
611MMKV_EXPORT uint64_t backupAll(const char *dstDir/*, const char *rootPath*/) {
612 // historically Android mistakenly use mmapKey as mmapID

Callers

nothing calls this directly

Calls 1

restoreOneFromDirectoryFunction · 0.50

Tested by

no test coverage detected