CompressAlgorithm CompressAlgorithm CompressAlgorithm CompressAlgorithm CompressAlgorithm Enum


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

public : enum class CompressAlgorithm
enum class winrt::Windows::Storage::Compression::CompressAlgorithm : int32_t
public enum CompressAlgorithm
Public Enum CompressAlgorithm
var value = Windows.Storage.Compression.CompressAlgorithm.invalidAlgorithm;
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


InvalidAlgorithm InvalidAlgorithm InvalidAlgorithm InvalidAlgorithm InvalidAlgorithm

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

Lzms Lzms Lzms Lzms Lzms

The compressor will use the LZMS compression algorithm.

Mszip Mszip Mszip Mszip Mszip

The compressor will use the MSZIP compression algorithm.

NullAlgorithm NullAlgorithm NullAlgorithm NullAlgorithm NullAlgorithm

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

Xpress Xpress Xpress Xpress Xpress

The compressor will use the XPRESS compression algorithm.

XpressHuff XpressHuff XpressHuff XpressHuff XpressHuff

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