LzmaCompressor instance.LzmaCompressor.create
LzmaCompressor create(int level = cast(int) LZMA_PRESET_DEFAULT,
lzma_check check = lzma_check.LZMA_CHECK_CRC64) staticCreates a new LzmaCompressor with the specified compression level.
Parameters
level | Compression preset level (0..9, default: LZMA_PRESET_DEFAULT). |
check | Integrity check to embed in the .xz stream (default: LZMA_CHECK_CRC64). |
Returns
A new
Throws
LzmaException if encoder initialisation fails.