Creates a new instance of GzipCompressionStream class.

Namespace:  Rebex.IO.Compression.Streams
Assembly:  Rebex.Zip (in Rebex.Zip.dll)

Syntax

Visual Basic
Public Sub New ( _
	inner As Stream, _
	mode As OpenMode, _
	compressionLevel As Integer _
)
C#
public GzipCompressionStream(
	Stream inner,
	OpenMode mode,
	int compressionLevel
)

Parameters

inner
Type: System.IO..::..Stream
Underlying stream that contains decompressed data or to which compressed data is written.
mode
Type: Rebex.IO.Compression.Streams..::..OpenMode
Whether data will be read from or written to the underlying stream.
compressionLevel
Type: System..::..Int32
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.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also