Class LzmaCompressionSettings

Class LzmaCompressionSettings

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

压缩器或解压缩器工作所需的设置。

public class LzmaCompressionSettings : CompressionSettings

继承

objectCompressionSettingsLzmaCompressionSettings

继承成员

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()

备注

Lempel–Ziv–Markov链算法(LZMA)是一种用于执行无损数据压缩的算法。 该算法使用一种类似于LZ77算法的字典压缩方案,具有高压缩比和可变的压缩字典大小。

了解更多: https://en.wikipedia.org/wiki/Lempel–Ziv–Markov_chain_algorithm

构造函数

LzmaCompressionSettings()

使用默认字典大小(16兆字节)初始化Aspose.Zip.Saving.LzmaCompressionSettings类的新实例。

public LzmaCompressionSettings()

示例

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