示例#1
0
        /// <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);
        }
示例#2
0
        /// <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);
        }
示例#3
0
        public static void Decompress(string inFile, string outFile, ProgressDelegate progress)
        {
            CodeProgress codeProgress = new CodeProgress(progress);

            Decompress(inFile, outFile, codeProgress);
        }