Пример #1
0
        private static int RunCompressAndReturnExitCode(CompressOptions options)
        {
            var compressor = new ConcurrentBlockCompressor(
                new Compressor(),
                options.SourceFile,
                options.CompressToFile,
                1048576
                );

            return(RunCommand(compressor.Compress, options.CompressToFile));
        }
        public void Setup()
        {
            _tempInFileName  = Path.GetTempFileName();
            _tempOutFileName = Path.GetTempFileName();

            _concurrentBlockCompressor = new ConcurrentBlockCompressor(
                new Compressor(),
                _tempInFileName,
                _tempOutFileName,
                20
                );
            _tempDecompressFileName      = Path.GetTempFileName();
            _concurrentBlockDecompressor = new ConcurrentBlockDecompressor(
                new Compressor(),
                _tempOutFileName,
                _tempDecompressFileName
                );
        }