public HuffmanTree(byte[] codeLengths) { this.codeLengthArray = codeLengths; if (this.codeLengthArray.Length == 0x120) { this.tableBits = 9; } else { this.tableBits = 7; } this.tableMask = (((int)1) << this.tableBits) - 1; this.CreateTable(); }