Ionic.Zlib.ParallelDeflateOutputStream.ParallelDeflateOutputStream C# (CSharp) 메소드

ParallelDeflateOutputStream() 공개 메소드

Create a ParallelDeflateOutputStream.

This stream compresses data written into it via the DEFLATE algorithm (see RFC 1951), and writes out the compressed byte stream.

The instance will use the default compression level, the default buffer sizes and the default number of threads and buffers per thread.

This class is similar to Ionic.Zlib.DeflateStream, except that this implementation uses an approach that employs multiple worker threads to perform the DEFLATE. On a multi-cpu or multi-core computer, the performance of this class can be significantly higher than the single-threaded DeflateStream, particularly for larger streams. How large? Anything over 10mb is a good candidate for parallel compression.

public ParallelDeflateOutputStream ( System stream ) : System
stream System The stream to which compressed data will be written.
리턴 System
        public ParallelDeflateOutputStream(System.IO.Stream stream)
            : this(stream, CompressionLevel.Default, CompressionStrategy.Default, false)
        {
        }

Same methods

ParallelDeflateOutputStream::ParallelDeflateOutputStream ( System stream, CompressionLevel level ) : System
ParallelDeflateOutputStream::ParallelDeflateOutputStream ( System stream, CompressionLevel level, CompressionStrategy strategy, bool leaveOpen ) : System
ParallelDeflateOutputStream::ParallelDeflateOutputStream ( System stream, CompressionLevel level, bool leaveOpen ) : System
ParallelDeflateOutputStream::ParallelDeflateOutputStream ( System stream, bool leaveOpen ) : System