Class PPMdCompressionSettings
名称: Aspose.Zip.Saving 收藏: Aspose.Zip.dll (25.5.0)
设置需要压缩机或压缩机工作。
public class PPMdCompressionSettings : CompressionSettings
Inheritance
object ← CompressionSettings ← PPMdCompressionSettings
继承人
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
PPMd 是由 Dmitry Shkarin 开发的数据压缩算法,基于预测句子匹配多个顺序背景。
Constructors
PPMd压缩设置(int , int , int)
启动 Aspose.Zip.Saving.PPMdCompressionSettings 类的新例子。
public PPMdCompressionSettings(int modelOrder, int suballocatorSize)
Parameters
modelOrder
int
模型的命令。
suballocatorSize
int
MB suballocator 的記憶體大小可能消耗。
Examples
using (Archive archive = new Archive(new ArchiveEntrySettings(new PPMdCompressionSettings(4, 10))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(zipFile);
}
Remarks
更大的模型订单几乎肯定会导致更好的压缩和更大的内存和CPU使用。
PPMd 算法可能需要大量的内存,特别是当用于大文件和/或使用大模型顺序时。
Exceptions
modelOrder’ is not between 2 and 16. - or -
suballocatorSize’ is not between 1 and 256.
PPMd压缩设置()
启动 Aspose.Zip.Saving.PPMdCompressionSettings 类的新例子,默认模型顺序和分配器大小。
public PPMdCompressionSettings()
Examples
using (Archive archive = new Archive(new ArchiveEntrySettings(new PPMdCompressionSettings())))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(zipFile);
}
Remarks
默认模型命令为8个,分配器大小为50MB。
Properties
ModelOrder
得到模型的命令。
public int ModelOrder { get; }
财产价值
SuballocatorSize
在 MB 中获取分配器尺寸。
public int SuballocatorSize { get; }