static DeflaterHuffman()
{
int index = 0;
while (index < 0x90)
{
staticLCodes[index] = BitReverse((0x30 + index) << 8);
staticLLength[index++] = 8;
}
while (index < 0x100)
{
staticLCodes[index] = BitReverse((0x100 + index) << 7);
staticLLength[index++] = 9;
}
while (index < 280)
{
staticLCodes[index] = BitReverse((-256 + index) << 9);
staticLLength[index++] = 7;
}
while (index < 0x11e)
{
staticLCodes[index] = BitReverse((-88 + index) << 8);
staticLLength[index++] = 8;
}
staticDCodes = new short[30];
staticDLength = new byte[30];
for (index = 0; index < 30; index++)
{
staticDCodes[index] = BitReverse(index << 11);
staticDLength[index] = 5;
}
}