write patch engine

This commit is contained in:
2024-05-04 10:24:52 +00:00
parent 9b8c1569a6
commit 6af4d88535
7 changed files with 343 additions and 18 deletions

View File

@ -4,6 +4,8 @@
#include "map.hpp"
#include "storage/driver.h"
#include "vector.hpp"
void GenerateDiff(const std::string &old_file, const std::string &new_file, const std::string &diff_file);
void ApplyPatch(const std::string &old_file, const std::string &diff_file, const std::string &new_file, bool is_reverse);
class SnapShotManager {
bool has_connected = false;
sjtu::vector<DataDriverBase *> drivers;