Class LzipArchiveSettings

Class LzipArchiveSettings

Namespace: Aspose.Zip.Lzip
Assembly: Aspose.Zip.dll (25.1.0)

该类包含特定 lzip 存档的设置。

public class LzipArchiveSettings

继承

objectLzipArchiveSettings

继承成员

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

构造函数

LzipArchiveSettings(int, int)

使用特定字典大小初始化 Aspose.Zip.Lzip.LzipArchiveSettings 的新实例。

public LzipArchiveSettings(int dictionarySize, int maxMemberSize = 62914560)

参数

dictionarySize int

LZMA 压缩的字典大小(以字节为单位)。

maxMemberSize int

lzip 存档中单个成员的最大大小(以字节为单位)。默认值为 60 MB。

属性

CompressionThreads

获取或设置压缩线程数。如果值大于 1,将使用多线程压缩。

public int CompressionThreads { get; set; }

属性值

int

备注

请勿将此数字设置为超过 CPU 核心数。

异常

ArgumentOutOfRangeException

线程数超过 100。

DictionarySize

获取 LZMA 压缩使用的字典大小。

public int DictionarySize { get; }

属性值

int

FastSpeed

获取 Aspose.Zip.Lzip.LzipArchiveSettings 类的实例,字典大小等于 LZMA 过滤器中的 1 兆字节。

public static LzipArchiveSettings FastSpeed { get; }

属性值

LzipArchiveSettings

FastestSpeed

获取 Aspose.Zip.Lzip.LzipArchiveSettings 类的实例,字典大小等于 LZMA 过滤器中的 65536 字节。

public static LzipArchiveSettings FastestSpeed { get; }

属性值

LzipArchiveSettings

HighCompression

获取 Aspose.Zip.Lzip.LzipArchiveSettings 类的实例,字典大小等于 LZMA 过滤器中的 32 兆字节。

public static LzipArchiveSettings HighCompression { get; }

属性值

LzipArchiveSettings

MaxMemberSize

获取 lzip 存档中单个成员的最大大小(以字节为单位)。

public long MaxMemberSize { get; }

属性值

long

MaximumCompression

获取 Aspose.Zip.Lzip.LzipArchiveSettings 类的实例,字典大小等于 LZMA 过滤器中的 64 兆字节。

public static LzipArchiveSettings MaximumCompression { get; }

属性值

LzipArchiveSettings

Normal

获取 Aspose.Zip.Lzip.LzipArchiveSettings 类的实例,字典大小等于 LZMA 过滤器中的 16 兆字节。

public static LzipArchiveSettings Normal { get; }

属性值

LzipArchiveSettings

 中文