Class XzArchiveSettings

Class XzArchiveSettings

이름 공간 : Aspose.Zip.Xz.Settings 모임: Aspose.Zip.dll (25.5.0)

클래스는 특정 xz 아카이브를 설정하는 세트를 포함합니다.

public class XzArchiveSettings

Inheritance

object XzArchiveSettings

상속 회원들

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

XzArchiveSettings()

단일 LZMA2 압축을 사용하여 Aspose.Zip.Xz.Settings.XzArchiveSettings 클래스의 새로운 예를 시작합니다.

public XzArchiveSettings()

Remarks

LZMA2 필터 크기의 기본 사전은 16 메가바이트, 기본 블록 크기는 64 메이가 바이트에 해당하며 기본 체크 룸 유형은 CRC32입니다.

XzArchiveSettings(XzFilterSettings[ ] [ [ ], 긴, XzCheckType)

Aspose.Zip.Xz.Settings.XzArchiveSettings 클래스의 새로운 예를 사용하여 사용자 지정된 매개 변수로 시작합니다.

public XzArchiveSettings(XzFilterSettings[] filters, long blockSize, XzCheckType checkType)

Parameters

filters XzFilterSettings [ ] [ [ ]

Filters (compressors) to be sequentially applied to create Aspose.Zip.Xz.XzArchive. 그것은 단일 Aspose.Zip.Xz.Settings.XzLZMA2FilterSettings 될 수 있습니다.또는 Aspose.Zip.Xz.Settings.XzBcjX86FilterSettings 및 Aspose.Zip.Xz.Settings.XzLZMA2FilterSettings

blockSize long

크기 xz 파일 블록.

checkType XzCheckType

압축되지 않은 데이터에 대한 수수료 계산의 유형.

Examples

using (FileStream xzFile = File.Open("archive.xz", FileMode.Create))
{
    XzLZMA2FilterSettings filter = new XzLZMA2FilterSettings(5242880);
    XzArchiveSettings settings = new XzArchiveSettings(new XzFilterSettings[] {filter}, 10485760, XzCheckType.Crc32);
    using (var archive = new XzArchive(settings))
    {
        archive.SetSource("data.bin");
        archive.Save(xzFile);
     }
}

Exceptions

ArgumentOutOfRangeException

blockSize’ is negative.

ArgumentNullException

filters’ is null

ArgumentException

filters’ has less than one or more than two filters, or last filter is not Aspose.Zip.Xz.Settings.XzLZMA2FilterSettings.

Properties

CompressionThreads

값이 1을 초과하는 경우, 멀티 트라이딩 압축이 사용됩니다.

public int CompressionThreads { get; set; }

부동산 가치

int

Remarks

이 숫자를 CPU 코어보다 더 많이 설정하지 마십시오.

Exceptions

ArgumentOutOfRangeException

끈의 수는 100 이상입니다.

FastSpeed

Aspose.Zip.Xz.Settings.XzArchiveSettings 클래스의 예를 얻습니다.단어 크기는 LZMA2 필터에서 1 메가바이트, 블록 크기는 4 메가바이트 및 CRC32 체크스모에 해당합니다.

public static XzArchiveSettings FastSpeed { get; }

부동산 가치

XzArchiveSettings

FastestSpeed

Aspose.Zip.Xz.Settings.XzArchiveSettings 클래스의 예를 얻습니다.LZMA2 필터의 사전 크기는 65536 바이트에 해당하며, 블록 크기는 1 메가바이트와 CRC32 체크소에 해당합니다.

public static XzArchiveSettings FastestSpeed { get; }

부동산 가치

XzArchiveSettings

HighCompression

Aspose.Zip.Xz.Settings.XzArchiveSettings 클래스의 예를 얻습니다.LZMA2 필터의 사전 크기는 32 메가바이트, 블록 크기는 128 메가바이트 및 CRC32 체크스모에 해당합니다.

public static XzArchiveSettings HighCompression { get; }

부동산 가치

XzArchiveSettings

MaximumCompression

Aspose.Zip.Xz.Settings.XzArchiveSettings 클래스의 예를 얻습니다.LZMA2 필터의 사전 크기는 64 메가바이트, 블록 크기는 256 메가바이트 및 CRC32 체크스모에 해당합니다.

public static XzArchiveSettings MaximumCompression { get; }

부동산 가치

XzArchiveSettings

Normal

Aspose.Zip.Xz.Settings.XzArchiveSettings 클래스의 예를 얻습니다.LZMA2 필터의 사전 크기는 16 메가바이트, 블록 크기는 64 메가바이트 및 CRC32 체크스모에 해당합니다.

public static XzArchiveSettings Normal { get; }

부동산 가치

XzArchiveSettings

 한국어