Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetStaticLiteralTreeLength()

static byte[] System.IO.Compression.HuffmanTree.GetStaticLiteralTreeLength ( )
inlinestaticprivate

Definition at line 41 of file HuffmanTree.cs.

42 {
43 byte[] array = new byte[288];
44 for (int i = 0; i <= 143; i++)
45 {
46 array[i] = 8;
47 }
48 for (int j = 144; j <= 255; j++)
49 {
50 array[j] = 9;
51 }
52 for (int k = 256; k <= 279; k++)
53 {
54 array[k] = 7;
55 }
56 for (int l = 280; l <= 287; l++)
57 {
58 array[l] = 8;
59 }
60 return array;
61 }

References System.array.