Ejemplo n.º 1
0
        public BZipArchiver(
            Stream incomingStream,
            Stream outgoingStream,
            IBZipProcessor zipProcessor,
            BZipArchiverOptions options)
        {
            _incomingStream = incomingStream;
            _outgoingStream = outgoingStream;
            _zipProcessor   = zipProcessor;
            _options        = options;

            _chunksToProcess = new ProducerConsumer <StreamChunk>(options.ChunksToProcessBoundedCapacity);
            _chunksToWrite   = new ProducerConsumer <StreamChunk>(options.ChunksToWriteBoundedCapacity);
        }
Ejemplo n.º 2
0
 public BZipCompressor(Stream incomingStream, Stream outgoingStream, BZipArchiverOptions?options = default)
 {
     _incomingStream = incomingStream;
     _outgoingStream = outgoingStream;
     _options        = options ?? new BZipArchiverOptions();
 }