System.IO.Compression Namespace

The System.IO.Compression namespace contains classes that provide basic compression and decompression services for streams.

Classes

BrotliStream

Provides methods and properties used to compress and decompress streams by using the Brotli data format specification.

DeflateStream

Provides methods and properties for compressing and decompressing streams by using the Deflate algorithm.

GZipStream

Provides methods and properties used to compress and decompress streams by using the GZip data format specification.

ZipArchive

Represents a package of compressed files in the zip archive format.

ZipArchiveEntry

Represents a compressed file within a zip archive.

ZipFile

Provides static methods for creating, extracting, and opening zip archives.

ZipFileExtensions

Provides extension methods for the ZipArchive and ZipArchiveEntry classes.

Structs

BrotliDecoder

Provides non-allocating, performant Brotli decompression methods. The methods decompress in a single pass without using a System.IO.Compression.Brotli.BrotliStream instance.

BrotliEncoder

Provides methods and static methods to encode and decode data in a streamless, non-allocating, and performant manner using the Brotli data format specification.

Enums

CompressionLevel

Specifies values that indicate whether a compression operation emphasizes speed or compression size.

CompressionMode

Specifies whether to compress or decompress the underlying stream.

ZipArchiveMode

Specifies values for interacting with zip archive entries.