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

Function backupOne

flutter/mmkv_linux/linux/flutter-bridge.cpp:569–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567}
568
569MMKV_EXPORT bool backupOne(const char *mmapID, const char *dstDir, const char *rootPath) {
570 auto dst = string(dstDir);
571 if (rootPath) {
572 auto root = string(rootPath);
573 if (root.length() > 0) {
574 return MMKV::backupOneToDirectory(mmapID, dst, &root);
575 }
576 }
577 return MMKV::backupOneToDirectory(mmapID, dst);
578}
579
580MMKV_EXPORT bool restoreOne(const char *mmapID, const char *srcDir, const char *rootPath) {
581 auto src = string(srcDir);

Callers

nothing calls this directly

Calls 1

backupOneToDirectoryFunction · 0.50

Tested by

no test coverage detected