Class LzwConstants
This class contains constants used for LZW
Inheritance
System.Object
LzwConstants
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ICSharpCode.SharpZipLib.Lzw
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
public sealed class LzwConstants
Fields
| Improve this Doc View SourceBIT_MASK
Mask for 'number of compression bits'
Declaration
public const int BIT_MASK = 31
Field Value
Type | Description |
---|---|
System.Int32 |
BLOCK_MODE_MASK
Block compression: if table is full and compression rate is dropping, clear the dictionary.
Declaration
public const int BLOCK_MODE_MASK = 128
Field Value
Type | Description |
---|---|
System.Int32 |
EXTENDED_MASK
Indicates the presence of a fourth header byte
Declaration
public const int EXTENDED_MASK = 32
Field Value
Type | Description |
---|---|
System.Int32 |
HDR_SIZE
LZW file header size (in bytes)
Declaration
public const int HDR_SIZE = 3
Field Value
Type | Description |
---|---|
System.Int32 |
INIT_BITS
Initial number of bits per code
Declaration
public const int INIT_BITS = 9
Field Value
Type | Description |
---|---|
System.Int32 |
MAGIC
Magic number found at start of LZW header: 0x1f 0x9d
Declaration
public const int MAGIC = 8093
Field Value
Type | Description |
---|---|
System.Int32 |
MAX_BITS
Maximum number of bits per code
Declaration
public const int MAX_BITS = 16
Field Value
Type | Description |
---|---|
System.Int32 |
RESERVED_MASK
Reserved bits
Declaration
public const int RESERVED_MASK = 96
Field Value
Type | Description |
---|---|
System.Int32 |