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); }
public BZipCompressor(Stream incomingStream, Stream outgoingStream, BZipArchiverOptions?options = default) { _incomingStream = incomingStream; _outgoingStream = outgoingStream; _options = options ?? new BZipArchiverOptions(); }