Class SevenZipLZMA2CompressionSettings

Class SevenZipLZMA2CompressionSettings

名称: Aspose.Zip.Saving 收藏: Aspose.Zip.dll (25.5.0)

设置需要7z压缩机或压缩机工作。

public class SevenZipLZMA2CompressionSettings : SevenZipCompressionSettings

Inheritance

object SevenZipCompressionSettings SevenZipLZMA2CompressionSettings

继承人

SevenZipCompressionSettings.Method , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Remarks

LZMA2 支持多行压缩的 L ZMA 数据和未压縮的数据。

查看更多: https://en.wikipedia.org/wiki/Lempel –Ziv–Markov_chain_algorithm

Constructors

7ZipLZMA2压缩设置(因特)

在 7z 档案中启动 LZMA2 压缩方法的设置。

public SevenZipLZMA2CompressionSettings(int dictionarySize = 16777216)

Parameters

dictionarySize int

历史泡沫的尺寸必须在4096和1073741824之间。

Remarks

词典越大,通常压缩比例就越好 - 但比未压縮数据更大的字典是RAM的浪费。

Exceptions

ArgumentOutOfRangeException

dictionarySize’ is too big or too small.

7ZipLZMA2压缩设置(int , int , int)

在 7z 档案中启动 LZMA2 压缩方法的设置。

public SevenZipLZMA2CompressionSettings(int dictionarySize, int fastBytes = 32)

Parameters

dictionarySize int

历史泡沫的尺寸必须在4096和1073741824之间。

fastBytes int

控制了 LZMA2 压缩机所使用的快速比特数量,更大的速度可以提供更好的压力比率,以便加压速度。

Remarks

词典越大,通常压缩比例就越好 - 但比未压縮数据更大的字典是RAM的浪费。

Exceptions

ArgumentOutOfRangeException

dictionarySize’ is too big or too small, or fastBytes’ is too big or too small.

Properties

CompressionThreads

接收或设置压缩条数,如果值超过1,将使用多条压。

public int CompressionThreads { get; set; }

财产价值

int

Remarks

不要设置这个数字超过CPU核心。

Exceptions

ArgumentOutOfRangeException

线条数量高于32个。

DictionarySize

字典(历史泡沫)大小表明,最近处理的未压缩数据的数比特存储在记忆中。

public int DictionarySize { get; }

财产价值

int

Remarks

词典越大,通常压缩比例就越好 - 但比未压縮数据更大的字典是RAM的浪费。

FastBytes

接收由 LZMA2 压缩机使用的快速比特的控制数量。

public int FastBytes { get; }

财产价值

int

Method

接收压缩或压缩方法。

public override SevenZipCompressionMethod Method { get; }

财产价值

SevenZipCompressionMethod

 中文