LZipCompressionOptions Class

The options of the compression of an LZipStream.

public sealed class LZipCompressionOptions

Constructors

NameDescription
LZipCompressionOptions()

LZipCompressionOptions()

LZipCompressionOptions.cs
public LZipCompressionOptions()

No documentation is available.

Properties

NameDescription
DictionarySizeGets or sets the dictionary size in bytes, from 4 KiB to 512 MiB, or null to use the one of the preset. The header of a member stores the size in one byte: it stores the smallest size it can represent that is at least this size.
MemberSizeGets or sets the number of bytes of uncompressed data of each member, or 0 to write a single member. The default is 0.
PresetGets or sets the preset, from 0 (fastest) to 9 (smallest output), with the parameters of the presets of xz. The default is 6.

Gets or sets the dictionary size in bytes, from 4 KiB to 512 MiB, or null to use the one of the preset. The header of a member stores the size in one byte: it stores the smallest size it can represent that is at least this size.

public int? DictionarySize { get; set; }

Property value

int?

Exceptions

ArgumentOutOfRangeException
The value is not between 4 KiB and 512 MiB.

Gets or sets the number of bytes of uncompressed data of each member, or 0 to write a single member. The default is 0.

public long MemberSize { get; set; }

Property value

long

Exceptions

ArgumentOutOfRangeException
The value is negative.

Gets or sets the preset, from 0 (fastest) to 9 (smallest output), with the parameters of the presets of xz. The default is 6.

public int Preset { get; set; }

Property value

int

Exceptions

ArgumentOutOfRangeException
The value is not between 0 and 9.

Constants

NameDescription
MaxDictionarySizeThe largest dictionary size of lzip: 512 MiB.
MinDictionarySizeThe smallest dictionary size of lzip: 4 KiB.

MaxDictionarySize

The largest dictionary size of lzip: 512 MiB.

public const int MaxDictionarySize = 536870912

MinDictionarySize

The smallest dictionary size of lzip: 4 KiB.

public const int MinDictionarySize = 4096