System.IO.Compression 命名空間

包含提供資料流基本壓縮和解壓縮服務的類別。 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.