Package Functions

void gen_bitlen (DeflateManager s)
 
void build_tree (DeflateManager s)
 

Static Package Functions

static int DistanceCode (int dist)
 Map from a distance to a distance code. More...
 
static void gen_codes (short[] tree, int max_code, short[] bl_count)
 
static int bi_reverse (int code, int len)
 

Package Attributes

const int Buf_size = 8 * 2
 
short[] dyn_tree
 
int max_code
 
StaticTree staticTree
 

Static Package Attributes

static readonly int[] ExtraLengthBits
 
static readonly int[] ExtraDistanceBits
 
static readonly int[] extra_blbits = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7}
 
static readonly sbyte[] bl_order = new sbyte[]{16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}
 
static readonly sbyte[] LengthCode
 
static readonly int[] LengthBase
 
static readonly int[] DistanceBase
 

Static Private Attributes

static readonly int HEAP_SIZE = (2 * InternalConstants.L_CODES + 1)
 
static readonly sbyte[] _dist_code
 

Member Function Documentation

static int Zlib.Tree.bi_reverse ( int  code,
int  len 
)
inlinestaticpackage
void Zlib.Tree.build_tree ( DeflateManager  s)
inlinepackage
static int Zlib.Tree.DistanceCode ( int  dist)
inlinestaticpackage

Map from a distance to a distance code.

No side effects. _dist_code[256] and _dist_code[257] are never used.

void Zlib.Tree.gen_bitlen ( DeflateManager  s)
inlinepackage
static void Zlib.Tree.gen_codes ( short[]  tree,
int  max_code,
short[]  bl_count 
)
inlinestaticpackage

Member Data Documentation

readonly sbyte [] Zlib.Tree._dist_code
staticprivate
readonly sbyte [] Zlib.Tree.bl_order = new sbyte[]{16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}
staticpackage
const int Zlib.Tree.Buf_size = 8 * 2
package
readonly int [] Zlib.Tree.DistanceBase
staticpackage
Initial value:
= new int[]
{
0, 1, 2, 3, 4, 6, 8, 12, 16, 24, 32, 48, 64, 96, 128, 192,
256, 384, 512, 768, 1024, 1536, 2048, 3072, 4096, 6144, 8192, 12288, 16384, 24576
}
short [] Zlib.Tree.dyn_tree
package
readonly int [] Zlib.Tree.extra_blbits = new int[]{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7}
staticpackage
readonly int [] Zlib.Tree.ExtraDistanceBits
staticpackage
Initial value:
= new int[]
{
0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6,
7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13
}
readonly int [] Zlib.Tree.ExtraLengthBits
staticpackage
Initial value:
= new int[]
{
0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2,
3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0
}
readonly int Zlib.Tree.HEAP_SIZE = (2 * InternalConstants.L_CODES + 1)
staticprivate
readonly int [] Zlib.Tree.LengthBase
staticpackage
Initial value:
= new int[]
{
0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 20, 24, 28,
32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 0
}
readonly sbyte [] Zlib.Tree.LengthCode
staticpackage
Initial value:
= new sbyte[]
{
0, 1, 2, 3, 4, 5, 6, 7, 8, 8, 9, 9, 10, 10, 11, 11,
12, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15,
16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17,
18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19,
20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20,
21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23,
24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,
24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24,
25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26,
26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26,
27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27,
27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28
}
int Zlib.Tree.max_code
package
StaticTree Zlib.Tree.staticTree
package