System.IO.Compression 命名空间

System.IO.Compression 命名空间包含提供基本的流压缩和解压缩服务的类。 The System.IO.Compression namespace contains classes that provide basic compression and decompression services for streams.

BrotliStream

使用 Brotli 数据格式规范提供用于压缩和解压缩流的方法和属性。Provides methods and properties used to compress and decompress streams by using the Brotli data format specification.

DeflateStream

提供使用 Deflate 算法压缩和解压缩流的方法和属性。Provides methods and properties for compressing and decompressing streams by using the Deflate algorithm.

GZipStream

使用 GZip 数据格式规范提供用于压缩和解压缩流的方法和属性。Provides methods and properties used to compress and decompress streams by using the GZip data format specification.

ZipArchive

表示 Zip 存档格式中的一个压缩文件包。Represents a package of compressed files in the zip archive format.

ZipArchiveEntry

表示 zip 档案中的压缩文件。Represents a compressed file within a zip archive.

ZipFile

提供创建、解压缩和打开 zip 存档的静态方法。Provides static methods for creating, extracting, and opening zip archives.

ZipFileExtensions

ZipArchiveZipArchiveEntry 类提供扩展方法。Provides extension methods for the ZipArchive and ZipArchiveEntry classes.

结构

BrotliDecoder

提供未分配的高性能 Brotli 解压缩方法。Provides non-allocating, performant Brotli decompression methods. 方法在不使用 BrotliStream 实例的情况下以单次传递的形式解压缩。The methods decompress in a single pass without using a BrotliStream instance.

BrotliEncoder

提供方法和静态方法,以便使用 Brotli 数据格式规范以无流、非分配和高性能的方式对数据进行编码和解码。Provides methods and static methods to encode and decode data in a streamless, non-allocating, and performant manner using the Brotli data format specification.

枚举

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

指定用来与 zip 存档条目进行交互的值。Specifies values for interacting with zip archive entries.