HISTORY_ELEMENTS
m_pBuffer[0] = new int [HISTORY_ELEMENTS + WINDOW_BLOCKS];
ZeroMemory(m_pBuffer[0], (HISTORY_ELEMENTS + 1) * sizeof(int));
m_pInputBuffer = &m_pBuffer[0][HISTORY_ELEMENTS];
memcpy(&m_pBuffer[0][0], &m_pBuffer[0][WINDOW_BLOCKS], HISTORY_ELEMENTS * sizeof(int));
m_pInputBuffer = &m_pBuffer[0][HISTORY_ELEMENTS];
if (m_pCurrent == &m_pData[WINDOW_ELEMENTS + HISTORY_ELEMENTS])
template <class TYPE, int WINDOW_ELEMENTS, int HISTORY_ELEMENTS> class CRollBufferFast
m_pData = new TYPE[WINDOW_ELEMENTS + HISTORY_ELEMENTS];
ZeroMemory(m_pData, (HISTORY_ELEMENTS + 1) * sizeof(TYPE));
m_pCurrent = &m_pData[HISTORY_ELEMENTS];
memcpy(&m_pData[0], &m_pCurrent[-HISTORY_ELEMENTS], HISTORY_ELEMENTS * sizeof(TYPE));
m_pCurrent = &m_pData[HISTORY_ELEMENTS];