Dela via


CompressAlgorithm Enum

Definition

Identifies a compression algorithm to use when creating an instance of a compressor.

public enum class CompressAlgorithm
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class CompressAlgorithm
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum CompressAlgorithm
var value = Windows.Storage.Compression.CompressAlgorithm.invalidAlgorithm
Public Enum CompressAlgorithm
Inheritance
CompressAlgorithm
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
InvalidAlgorithm 0

This value represents an invalid compression algorithm. It is useful primarily for error checking.

NullAlgorithm 1

This value represents an algorithm that passes data through with no compression. It is useful primarily for testing.

Mszip 2

The compressor will use the MSZIP compression algorithm.

Xpress 3

The compressor will use the XPRESS compression algorithm.

XpressHuff 4

The compressor will use the XPRESS compression algorithm with Huffman encoding.

Lzms 5

The compressor will use the LZMS compression algorithm.

Applies to