/// <summary> /// 解压缩内部实现 /// </summary> /// <param name="obj"></param> private static void DecompressByteInternal(object obj) { FileByteChangeInfo info = (FileByteChangeInfo)obj; CodeProgress codeProgress = null; if (info.progress != null) { codeProgress = new CodeProgress(info.progress); } Decompress(info.inPathByteArray, info.outPath, codeProgress, info.codeComplete); }
/// <summary> /// 解压缩内部实现 /// </summary> /// <param name="obj"></param> private static void DecompressInternal(object obj) { FileChangeInfo info = (FileChangeInfo)obj; string inpath = info.inPath; string outpath = info.outPath; CodeProgress codeProgress = null; if (info.progress != null) { codeProgress = new CodeProgress(info.progress); } Decompress(inpath, outpath, codeProgress); }
public static void Decompress(string inFile, string outFile, ProgressDelegate progress) { CodeProgress codeProgress = new CodeProgress(progress); Decompress(inFile, outFile, codeProgress); }