Class LzmaCompressionSettings

Class LzmaCompressionSettings

Namespace: Aspose.Zip.Saving
Assembly: Aspose.Zip.dll (25.5.0)

Settings needed for compressor or decompressor to work.

public class LzmaCompressionSettings : CompressionSettings

Inheritance

object CompressionSettings LzmaCompressionSettings

Inherited Members

CompressionSettings.Bzip2 , CompressionSettings.Deflate , CompressionSettings.EnhancedDeflate , CompressionSettings.Store , CompressionSettings.Lzma , CompressionSettings.Xz , CompressionSettings.PPMd , CompressionSettings.Zstd , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Remarks

The Lempel–Ziv–Markov chain algorithm (LZMA) is an algorithm used to perform lossless data compression. This algorithm uses a dictionary compression scheme somewhat similar to the LZ77 algorithm and features a high compression ratio and a variable compression-dictionary size.

See more: https://en.wikipedia.org/wiki/Lempel–Ziv–Markov_chain_algorithm

Constructors

LzmaCompressionSettings()

Initializes a new instance of the Aspose.Zip.Saving.LzmaCompressionSettings class with default dictionary size, equals to 16 megabytes.

public LzmaCompressionSettings()

Examples

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