public void PrepareToDecodeERISANCode() { if (null == m_pProbERISA) { m_pProbERISA = new ErisaProbBase(); } m_iLastSymbol = 0; for (int i = 0; i < 4; ++i) { m_bytLastSymbol[i] = 0; } m_pProbERISA.dwWorkUsed = 0; m_pProbERISA.epmBaseModel.Initialize(); for (int i = 0; i < ErisaProbBase.SlotMax; ++i) { m_pProbERISA.ptrProbIndex[i] = new ErisaProbModel(); } PrepareToDecodeERISACode(); if (null == m_pNemesisBuf) { m_pNemesisBuf = new byte[Nemesis.BufSize]; } if (null == m_pNemesisLookup) { m_pNemesisLookup = new NemesisPhraseLookup[0x100]; } for (int i = 0; i < m_pNemesisBuf.Length; ++i) { m_pNemesisBuf[i] = 0; } for (int i = 0; i < m_pNemesisLookup.Length; ++i) { m_pNemesisLookup[i] = new NemesisPhraseLookup(); } m_nNemesisIndex = 0; m_nNemesisLeft = 0; m_flagEOF = false; }
public void PrepareToDecodeERISANCode() { if (null == m_pProbERISA) m_pProbERISA = new ErisaProbBase(); m_iLastSymbol = 0; for (int i = 0; i < 4; ++i) m_bytLastSymbol[i] = 0; m_pProbERISA.dwWorkUsed = 0; m_pProbERISA.epmBaseModel.Initialize(); for (int i = 0; i < ErisaProbBase.SlotMax; ++i) { m_pProbERISA.ptrProbIndex[i] = new ErisaProbModel(); } PrepareToDecodeERISACode(); if (null == m_pNemesisBuf) { m_pNemesisBuf = new byte[Nemesis.BufSize]; } if (null == m_pNemesisLookup) { m_pNemesisLookup = new NemesisPhraseLookup[0x100]; } for (int i = 0; i < m_pNemesisBuf.Length; ++i) m_pNemesisBuf[i] = 0; for (int i = 0; i < m_pNemesisLookup.Length; ++i) m_pNemesisLookup[i] = new NemesisPhraseLookup(); m_nNemesisIndex = 0; m_nNemesisLeft = 0; m_flagEOF = false; }