LzmaCompressor.create

LzmaCompressor create(int level = cast(int) LZMA_PRESET_DEFAULT, lzma_check check = lzma_check.LZMA_CHECK_CRC64) static

Creates a new LzmaCompressor with the specified compression level.

Parameters

levelCompression preset level (0..9, default: LZMA_PRESET_DEFAULT).
checkIntegrity check to embed in the .xz stream (default: LZMA_CHECK_CRC64).

Returns

A new LzmaCompressor instance.

Throws

LzmaException if encoder initialisation fails.