System.IO.Compression Namespace

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

表示压缩文档格式的压缩文件包。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

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

结构

BrotliDecoder
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.