public void Initialize () { for (int i = 0; i < 0x201; i++) { m_hnTree[i] = new HuffmanNode(); } for (int i = 0; i < 0x100; i++) { m_iSymLookup[i] = Erina.HuffmanNull; } m_iEscape = Erina.HuffmanNull; m_iTreePointer = Erina.HuffmanRoot; m_hnTree[Erina.HuffmanRoot].Weight = 0; m_hnTree[Erina.HuffmanRoot].Parent = Erina.HuffmanNull; m_hnTree[Erina.HuffmanRoot].ChildCode = Erina.HuffmanNull; }
public void CopyFrom (HuffmanNode other) { this.Weight = other.Weight; this.Parent = other.Parent; this.ChildCode = other.ChildCode; }