Show / Hide Table of Contents

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 Source

BIT_MASK

Mask for 'number of compression bits'

Declaration
public const int BIT_MASK = 31
Field Value
Type Description
System.Int32
| Improve this Doc View Source

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
| Improve this Doc View Source

EXTENDED_MASK

Indicates the presence of a fourth header byte

Declaration
public const int EXTENDED_MASK = 32
Field Value
Type Description
System.Int32
| Improve this Doc View Source

HDR_SIZE

LZW file header size (in bytes)

Declaration
public const int HDR_SIZE = 3
Field Value
Type Description
System.Int32
| Improve this Doc View Source

INIT_BITS

Initial number of bits per code

Declaration
public const int INIT_BITS = 9
Field Value
Type Description
System.Int32
| Improve this Doc View Source

MAGIC

Magic number found at start of LZW header: 0x1f 0x9d

Declaration
public const int MAGIC = 8093
Field Value
Type Description
System.Int32
| Improve this Doc View Source

MAX_BITS

Maximum number of bits per code

Declaration
public const int MAX_BITS = 16
Field Value
Type Description
System.Int32
| Improve this Doc View Source

RESERVED_MASK

Reserved bits

Declaration
public const int RESERVED_MASK = 96
Field Value
Type Description
System.Int32
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2000-2022 SharpZipLib Contributors