CompressionStream Constructor
Namespace: Rebex.IO.Compression.Streams
Assembly: Rebex.Zip.dll (version 7.0.9083)
CompressionStream(Stream, OpenMode, CompressionFormat, CompressionMethod)
Creates a new instance of CompressionStream class.
Declaration
public CompressionStream(Stream inner, OpenMode mode, CompressionFormat format, CompressionMethod method)
Parameters
Type | Name | Description |
---|---|---|
Stream | inner | Underlying stream that contains decompressed data or to which compressed data is written. |
OpenMode | mode | Whether data will be read from or written to the underlying stream. |
CompressionFormat | format | Format of the compressed data. |
CompressionMethod | method | Compression method of the particular data format. |
CompressionStream(Stream, OpenMode, CompressionFormat, CompressionMethod, Int32)
Creates a new instance of CompressionStream class.
Declaration
public CompressionStream(Stream inner, OpenMode mode, CompressionFormat format, CompressionMethod method, int compressionLevel)
Parameters
Type | Name | Description |
---|---|---|
Stream | inner | Underlying stream that contains decompressed data or to which compressed data is written. |
OpenMode | mode | Whether data will be read from or written to the underlying stream. |
CompressionFormat | format | Format of the compressed data. |
CompressionMethod | method | Compression method of the particular data format. |
Int32 | compressionLevel | Compression level. Possible values are 0-9, where 0 means no compression (fastest) and 9 means best compression (slowest). 6 (medium compression and speed) is a default value. |