Class
LzmaSettings

Configures LZMA compression parameters (dictionary, context, position, fast bytes, match finder) for fine‑grained ratio and performance tuning.

Definition

Namespace:Telerik.Windows.Zip

Assembly:Telerik.Windows.Zip.dll

Syntax:

cs-api-definition
public class LzmaSettings : CompressionSettings, INotifyPropertyChanged

Inheritance: objectCompressionSettingsLzmaSettings

Implements: INotifyPropertyChanged

Inherited Members CompressionSettings.OnPropertyChanged(string)CompressionSettings.MethodCompressionSettings.PropertyChanged

Constructors

LzmaSettings()

Creates an LZMA settings instance with defaults optimized for balanced speed and compression (8MB dictionary, BT4 match finder).

Declaration

cs-api-definition
public LzmaSettings()

Properties

DictionarySize

Gets or sets the base-2 exponent for the dictionary size (0–27), controlling memory usage; 23 (8MB) by default.

Declaration

cs-api-definition
public int DictionarySize { get; set; }

Property Value

int

FastBytes

Gets or sets the number of fast bytes (5–273) scanned for matches before fallback; higher may improve ratio but costs speed (default 32).

Declaration

cs-api-definition
public int FastBytes { get; set; }

Property Value

int

LiteralContextBits

Gets or sets literal context bits (0–8) influencing prediction based on preceding bytes; default is 3.

Declaration

cs-api-definition
public int LiteralContextBits { get; set; }

Property Value

int

LiteralPositionBits

Gets or sets literal position bits (0–4) refining modeling by low address bits; default is 0.

Declaration

cs-api-definition
public int LiteralPositionBits { get; set; }

Property Value

int

MatchFinderType

Gets or sets the match finder algorithm variant determining hash granularity.

Declaration

cs-api-definition
public LzmaMatchFinderType MatchFinderType { get; set; }

Property Value

LzmaMatchFinderType

PositionStateBits

Gets or sets the number of position state bits (0–4) affecting literal/match modeling; default is 2.

Declaration

cs-api-definition
public int PositionStateBits { get; set; }

Property Value

int

StreamLength

Gets or sets the known uncompressed length for single standalone streams (not ZIP); -1 forces end marker emission.

Declaration

cs-api-definition
public long StreamLength { get; set; }

Property Value

long