LzmaCompressionSettings.LzmaCompressionSettings

LzmaCompressionSettings()

Initializes a new instance of the LzmaCompressionSettings class with default parameters.

public LzmaCompressionSettings()

Examples

using (Archive archive = new Archive(new ArchiveEntrySettings(new LzmaCompressionSettings())))
{
    archive.CreateEntry("data.bin", "data.bin");
    archive.Save(zipFile);
}

See Also


LzmaCompressionSettings(int, int, int)

Initializes a new instance of the LzmaCompressionSettings class with specified dictionary size, number of fast bytes and number of literal context bits.

public LzmaCompressionSettings(int dictionarySize, int numberOfFastBytes, int literalContextBits)
ParameterTypeDescription
dictionarySizeInt32Dictionary (history buffer) size in bytes. Must be between 4096 and 1073741824.
numberOfFastBytesInt32The number of bytes used for fast match searching in the LZMA algorithm. Can be in the range from 5 to 273.
literalContextBitsInt32Sets the number of literal context bits (high bits of previous literal). It can be in range from 0 to 8.

See Also


LzmaCompressionSettings(int)

Initializes a new instance of the LzmaCompressionSettings class with specified dictionary size, default number of fast bytes equal to 32 and number of literal context bits equal to 3.

public LzmaCompressionSettings(int dictionarySize)
ParameterTypeDescription
dictionarySizeInt32Dictionary (history buffer) size in bytes. Must be between 4096 and 1073741824.

See Also