累计更新:

cos上传
补丁压缩
This commit is contained in:
2025-12-06 16:29:26 +08:00
parent 5a2211d217
commit b78ee53326
11 changed files with 483 additions and 49 deletions
+2 -1
View File
@@ -6,6 +6,7 @@
* @param inputFilename The path to the original input file to be patched.
* @param patchFilename The path to the BSDIFF43 patch file (bzip2-compressed).
* @param outputFilename The path to the output file where the patched result will be written.
* @param compressMethod 0:Not compress 1: bzip 2:zstd
* @return true if the patch is applied successfully; false otherwise.
*
* The function performs the following steps:
@@ -18,4 +19,4 @@
* 7. Writes the patched data to the output file.
* 8. Cleans up all resources and returns true on success, or false if any error occurs.
*/
bool applyPatch(const char* inputFilename, const char* patchFilename, const char* outputFilename);
bool applyPatch(const char* inputFilename, const char* patchFilename, const char* outputFilename, int32_t compressMethod);