Class SevenZipPPMdCompressionSettings

Class SevenZipPPMdCompressionSettings

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

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

public sealed class SevenZipPPMdCompressionSettings : SevenZipCompressionSettings

Inheritance

object SevenZipCompressionSettings SevenZipPPMdCompressionSettings

继承人

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

Constructors

7ZipPPMdCompression设置(比特, int)

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

public SevenZipPPMdCompressionSettings(byte maxOrder, int suballocatorSize)

Parameters

maxOrder byte

最大命令。

suballocatorSize int

MB suballocator 的記憶體大小可能消耗。

Examples

using (SevenZipArchive archive = new SevenZipArchive(new SevenZipEntrySettings(new SevenZipPPMdCompressionSettings(4, 32))))
{
    archive.CreateEntry("data.bin", "data.bin");                        
    archive.Save(sevenZipFile);
 }

Remarks

更大的模型订单几乎肯定会导致更好的压缩和更大的内存和CPU使用。

PPMd 算法可能需要大量的内存,特别是当用于大文件和/或使用大模型顺序时。

Exceptions

ArgumentOutOfRangeException

maxOrder’ is not between 2 and 32, or suballocatorSize’ is not between 1 and 1024.

7ZipPPMdCompression设置()

在 7z 档案中启动 PPMd 压缩方法的设置,默认模型订单和分配器大小。

public SevenZipPPMdCompressionSettings()

Examples

using (SevenZipArchive archive = new SevenZipArchive(new SevenZipEntrySettings(new SevenZipPPMdCompressionSettings())))
{
    archive.CreateEntry("data.bin", "data.bin");                        
    archive.Save(sevenZipFile);
 }

Remarks

默认模型命令为 6 和分配器大小为 16 MB。

Properties

MaxOrder

得到最高的命令。

public byte MaxOrder { get; }

财产价值

byte

Method

接收压缩或压缩方法。

public override SevenZipCompressionMethod Method { get; }

财产价值

SevenZipCompressionMethod

SuballocatorSize

在 MB 中获取分配器尺寸。

public int SuballocatorSize { get; }

财产价值

int

 中文