namespace com.hitrust.util.Zip.Compression { using System; public class DeflaterConstants { public static int[] COMPR_FUNC = new int[] { 0, 1, 1, 1, 1, 2, 2, 2, 2, 2 }; public const bool DEBUGGING = false; public const int DEFAULT_MEM_LEVEL = 8; public const int DEFLATE_FAST = 1; public const int DEFLATE_SLOW = 2; public const int DEFLATE_STORED = 0; public const int DYN_TREES = 2; public static int[] GOOD_LENGTH = new int[] { 0, 4, 4, 4, 4, 8, 8, 8, 0x20, 0x20 }; public const int HASH_BITS = 15; public const int HASH_MASK = 0x7fff; public const int HASH_SHIFT = 5; public const int HASH_SIZE = 0x8000; public static int MAX_BLOCK_SIZE = Math.Min(0xffff, 0xfffb); public static int[] MAX_CHAIN = new int[] { 0, 4, 8, 0x20, 0x10, 0x20, 0x80, 0x100, 0x400, 0x1000 }; public const int MAX_DIST = 0x7efa; public static int[] MAX_LAZY = new int[] { 0, 4, 5, 6, 4, 0x10, 0x10, 0x20, 0x80, 0x102 }; public const int MAX_MATCH = 0x102; public const int MAX_WBITS = 15; public const int MIN_LOOKAHEAD = 0x106; public const int MIN_MATCH = 3; public static int[] NICE_LENGTH = new int[] { 0, 8, 0x10, 0x20, 0x10, 0x20, 0x80, 0x80, 0x102, 0x102 }; public const int PENDING_BUF_SIZE = 0x10000; public const int PRESET_DICT = 0x20; public const int STATIC_TREES = 1; public const int STORED_BLOCK = 0; public const int WMASK = 0x7fff; public const int WSIZE = 0x8000; } }