Class SevenZipPPMdCompressionSettings
İsim alanı : Aspose.Zip.Saving Toplama: Aspose.Zip.dll (25.5.0)
7z kompresör veya dekompresör çalışmak için gerekli ayarlar.
public sealed class SevenZipPPMdCompressionSettings : SevenZipCompressionSettings
Inheritance
object ← SevenZipCompressionSettings ← SevenZipPPMdCompressionSettings
mirasçı üyeleri
SevenZipCompressionSettings.Method , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
SevenZipPPMdKompresyonSettings(Bıçak, int)
7z arşivinde PPMd kompresyon yöntemi için ayarları hızlandırır.
public SevenZipPPMdCompressionSettings(byte maxOrder, int suballocatorSize)
Parameters
maxOrder
byte
Maksimum sipariş
suballocatorSize
int
MB suballocator’da hafıza boyutu tüketilebilir.
Examples
using (SevenZipArchive archive = new SevenZipArchive(new SevenZipEntrySettings(new SevenZipPPMdCompressionSettings(4, 32))))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(sevenZipFile);
}
Remarks
Daha büyük model siparişleri neredeyse kesinlikle daha iyi kompresyon ve kesinlikle daha fazla hafıza ve CPU kullanımına yol açar.
PPMd algoritması, özellikle büyük dosyalar üzerinde kullanıldığında ve/veya büyük model sırasıyla kullanıldığında, çok fazla hafıza gerektirir. ppmd size verdiğinizden daha fazla hafıza gerektirirse, sıkıştırma daha kötü olacaktır.
Exceptions
maxOrder’ is not between 2 and 32, or
suballocatorSize’ is not between 1 and 1024.
SevenZipPPMdKompresyonSettings()
7z arşivinde PPMd kompresyon yöntemi için ayarları varsayılan model siparişi ve alt dağıtıcı boyutu ile hızlandırır.
public SevenZipPPMdCompressionSettings()
Examples
using (SevenZipArchive archive = new SevenZipArchive(new SevenZipEntrySettings(new SevenZipPPMdCompressionSettings())))
{
archive.CreateEntry("data.bin", "data.bin");
archive.Save(sevenZipFile);
}
Remarks
Varsayılan model siparişi 6 ve alt dağıtıcı boyutu 16MB’dir.
Properties
MaxOrder
Maksimum sipariş verin.
public byte MaxOrder { get; }
Mülkiyet Değer
Method
Kompresyon veya dekompresyon yöntemini kullanır.
public override SevenZipCompressionMethod Method { get; }
Mülkiyet Değer
SuballocatorSize
Sub-allocator boyutunu MB’de alır.
public int SuballocatorSize { get; }