text
stringlengths
0
234
1,
2,
2,
2,
2,
3,
3,
3,
3,
4,
4,
4,
4,
5,
5,
5,
5,
0,
Invalid,
Invalid);
-- Copy offsets for distance codes 0..29 (30..31: deflate_e)
Copy_Offset_Distance : constant Length_Array (0 .. 31) :=
(1,
2,
3,
4,
5,
7,
9,
13,
17,
25,
33,
49,
65,
97,
129,
193,
257,
385,
513,
769,
1025,
1537,
2049,
3073,
4097,
6145,
8193,
12289,
16385,
24577,
32769,
49153);
-- Extra bits for distance codes
Extra_Bits_Distance : constant Length_Array (0 .. 31) :=
(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,
14,
14);
Max_Dist : constant Integer := 29; -- changed to 31 for deflate_e
Length_List_For_Fixed_Block_Literals : constant Length_Array (0 .. 287) :=
(0 .. 143 => 8, 144 .. 255 => 9, 256 .. 279 => 7, 280 .. 287 => 8);
procedure Inflate_Fixed_Block is
Tl, -- literal/length code table