CompressionAlgorithm Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the algorithm to use to compress or decompress the underlying stream.
public enum CompressionAlgorithm
type CompressionAlgorithm =
- Inheritance
-
CompressionAlgorithm
Fields
| Name | Value | Description |
|---|---|---|
| LZ4 | 256 | The LZ4 compression format. |
| LZ4Raw | 257 | The LZ4 compression format, without block headers. |
| Zlib | 517 | The zlib compression format. This is the compression format most compatible with other platforms. The encoder in the Compression framework only supports level 5. The decoder supports all compression levels. |
| Lzma | 774 | The Lempel–Ziv–Markov (LZMA) compression format. The encoder in the Compression framework only supports level 6. The decoder supports all compression levels. |
| LZBitmap | 1794 | The LZBitmap compression format. This compression algorithm is only available on Apple devices. |
| Lzfse | 2049 | The Lempel–Ziv Finite State Entropy (LZFSE) compression format. This is the format Apple recommends on Apple platforms. |
| Brotli | 2818 | The Brotli compression format. The encoder in the Compression framework only supports the Brotli level 2 encoder. The decoder supports all compression levels. |