Class PPMdCompressionSettings

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

PPMdCompression설정(이트, 이트)

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 알고리즘은 많은 메모리를 필요로 할 수 있습니다, 특히 큰 파일에 사용되고 / 또는 큰 모델 순서로 사용됩니다. ppmd는 당신이 그것을 제공하는 것보다 더 많은 메모리를 필요로하는 경우, 압축은 더 나빠질 것입니다.

Exceptions

ArgumentOutOfRangeException

modelOrder’ is not between 2 and 16. - or - suballocatorSize’ is not between 1 and 256.

PPMdCompression설정()

Aspose.Zip.Saving.PPMdCompressionSettings 클래스의 새로운 사례를 기본 모델 순서와 sub-allocator 크기로 시작합니다.

public PPMdCompressionSettings()

Examples

using (Archive archive = new Archive(new ArchiveEntrySettings(new PPMdCompressionSettings())))
{
    archive.CreateEntry("data.bin", "data.bin");                   
    archive.Save(zipFile);
}

Remarks

기본 모델 명령은 8이며 sub-allocator 크기는 50MB입니다.

Properties

ModelOrder

모델의 명령을 받는다.

public int ModelOrder { get; }

부동산 가치

int

SuballocatorSize

MB에서 sub-allocator 크기를 얻습니다.

public int SuballocatorSize { get; }

부동산 가치

int

 한국어