Provides a stream that uses RFC 1952 - GZIP implementation to compress data. If opened for writing it compresses specified data and writes the compressed data into an underlying stream. If opened for reading it reads an uncompressed data from the underlying stream and returns a compressed data. Unlike similar class present in .NET Framework 2.0, this one actually makes it possible to use Flush when compressing data to make sure all data written to the stream have been written into the underlying stream as well.

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


Visual Basic
Public Class GzipCompressionStream _
	Inherits CompressionStream
public class GzipCompressionStream : CompressionStream

Inheritance Hierarchy


Version Information

.NET Framework

Supported in: 4.8, 4.7.x, 4.6.x, 4.5.x, 4.0, 3.5 SP1

.NET Standard 2.0

Supported in: .NET Core 3.1, 3.0, 2.1; Xamarin.Android 9.1 (or higher); Xamarin.iOS 10.3 (or higher)

See Also