Class SevenZipPPMdCompressionSettings

Class SevenZipPPMdCompressionSettings

Tên không gian: Aspose.Zip.Saving Tổng hợp: Aspose.Zip.dll (25.5.0)

Cài đặt cần thiết cho máy nén 7z hoặc máy nén để làm việc.

public sealed class SevenZipPPMdCompressionSettings : SevenZipCompressionSettings

Inheritance

object SevenZipCompressionSettings SevenZipPPMdCompressionSettings

Thành viên thừa kế

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

Constructors

7Nhạc ChuôngPPMdCompression(Ưu đãi, int)

Tạo cài đặt cho phương pháp nén PPMd trong file 7z.

public SevenZipPPMdCompressionSettings(byte maxOrder, int suballocatorSize)

Parameters

maxOrder byte

Lệnh tối đa

suballocatorSize int

Kích thước bộ nhớ trong MB suballocator có thể tiêu thụ.

Examples

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

Remarks

Các đơn đặt hàng mô hình lớn hơn gần như chắc chắn dẫn đến nén tốt hơn và chắc chắn sử dụng bộ nhớ và CPU nhiều hơn.

Các thuật toán PPMd có thể cần rất nhiều bộ nhớ, đặc biệt là khi được sử dụng trên các tập tin lớn và/hoặc được sử dụng với thứ tự mô hình lớn. nếu ppmd cần nhiều bộ nhớ hơn bạn cho nó, sự phức tạp sẽ tồi tệ hơn.

Exceptions

ArgumentOutOfRangeException

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

7Nhạc ChuôngPPMdCompression()

Tạo cài đặt cho phương pháp nén PPMd trong tài liệu 7z với lệnh mô hình mặc định và kích thước phân bổ.

public SevenZipPPMdCompressionSettings()

Examples

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

Remarks

Lệnh mô hình mặc định là 6 và kích thước phân bổ là 16MB.

Properties

MaxOrder

Nhận được lệnh tối đa.

public byte MaxOrder { get; }

Giá trị bất động sản

byte

Method

Có phương pháp nén hoặc decompression.

public override SevenZipCompressionMethod Method { get; }

Giá trị bất động sản

SevenZipCompressionMethod

SuballocatorSize

Nhận kích thước sub-allocator trong MB.

public int SuballocatorSize { get; }

Giá trị bất động sản

int

 Tiếng Việt