LzmaCompressionOptions Class

The options of the compression of an LzmaStream.

public sealed class LzmaCompressionOptions

Constructors

NameDescription
LzmaCompressionOptions()

LzmaCompressionOptions()

LzmaCompressionOptions.cs
public LzmaCompressionOptions()

No documentation is available.

Properties

NameDescription
DictionarySizeGets or sets the dictionary size in bytes, from 4 KiB to 1.5 GiB, or null to use the one of the preset.
ExtremeGets or sets a value indicating whether to use the slower variant of the preset, which may compress better (xz --extreme).
LiteralContextBitsGets or sets the number of literal context bits (lc), from 0 to 8. The default is 3.
LiteralPositionBitsGets or sets the number of literal position bits (lp), from 0 to 4. The default is 0.
PositionBitsGets or sets the number of position bits (pb), from 0 to 4. The default is 2.
PresetGets or sets the preset of xz, from 0 (fastest) to 9 (smallest output). The default is 6.

Gets or sets the dictionary size in bytes, from 4 KiB to 1.5 GiB, or null to use the one of the preset.

public int? DictionarySize { get; set; }

Property value

int?

Exceptions

ArgumentOutOfRangeException
The value is not between 4 KiB and 1.5 GiB.

Gets or sets a value indicating whether to use the slower variant of the preset, which may compress better (xz --extreme).

public bool Extreme { get; set; }

Property value

bool

LiteralContextBits

LzmaCompressionOptions.cs

Gets or sets the number of literal context bits (lc), from 0 to 8. The default is 3.

public int LiteralContextBits { get; set; }

Property value

int

Exceptions

ArgumentOutOfRangeException
The value is not between 0 and 8.

LiteralPositionBits

LzmaCompressionOptions.cs

Gets or sets the number of literal position bits (lp), from 0 to 4. The default is 0.

public int LiteralPositionBits { get; set; }

Property value

int

Exceptions

ArgumentOutOfRangeException
The value is not between 0 and 4.

Gets or sets the number of position bits (pb), from 0 to 4. The default is 2.

public int PositionBits { get; set; }

Property value

int

Exceptions

ArgumentOutOfRangeException
The value is not between 0 and 4.

Gets or sets the preset of xz, from 0 (fastest) to 9 (smallest output). The default is 6.

public int Preset { get; set; }

Property value

int

Exceptions

ArgumentOutOfRangeException
The value is not between 0 and 9.