public class SevenZipOperator {
public static void Zip(string sourceFileFullPath, string targetFileFullPath) {
if(!File.Exists(sourceFileFullPath)) {
Debug.Log("This path '" + sourceFileFullPath + "' is not exist.");
return;
}
FileStream sourceStream = new FileStream(sourceFileFullPath, FileMode.Open);
FileStream targetStream = new FileStream(targetFileFullPath, FileMode.OpenOrCreate);
CoderPropID[] coderPropIDs = {
CoderPropID.DictionarySize,
CoderPropID.PosStateBits,
CoderPropID.LitContextBits,
CoderPropID.LitPosBits,
CoderPropID.Algorithm,
CoderPropID.NumFastBytes,
CoderPropID.MatchFinder,
CoderPropID.EndMarker
};
object[] properties = {
1<<23, 2, 3
C# 加密解密之7z
最新推荐文章于 2024-06-04 17:17:29 发布