累计更新:
cos上传 补丁压缩
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user