本文整理汇总了C++中CBuffer::Remove方法的典型用法代码示例。如果您正苦于以下问题:C++ CBuffer::Remove方法的具体用法?C++ CBuffer::Remove怎么用?C++ CBuffer::Remove使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CBuffer
的用法示例。
在下文中一共展示了CBuffer::Remove方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ReplayWith
int CCircuitry::ReplayWith(int nChan, CInterlink* pChain)
{
if ( ! pChain || ! pChain->IsConnected() ) return -1;
if ( m_pPlayIoOver->Offset >= MAX_PLAYLST ) return -1;
if ( ! HasOverlappedIoCompleted(m_pPlayIoOver) ) return -1;
CBuffer* pInput = pChain->m_pInput;
if ( pInput->m_nLength > MASK_BUFFER ) pInput->Remove( pInput->m_nLength - MASK_BUFFER );
if ( pInput->m_nLength < TEMP_BUFFER ) return -1;
Neighbour.m_pWakeup.SetEvent();
m_pPlayIoOver->Internal = STATUS_PENDING;
//TRACE("%i->buffer in[%i], [%i]\n", GetTickCount(), pInput->m_nBuffer,pInput->m_nLength);
m_nPlyCookie %= MAX_PLAYLST;
BYTE* pBuffer = m_pBufferIn[0] + ( m_nPlyCookie++ * TEMP_BUFFER );
CopyMemory( pBuffer, pInput->m_pBuffer, TEMP_BUFFER );
pInput->Remove( TEMP_BUFFER );
if ( int nResult = SsmPlayMemBlock(nChan, 6, pBuffer, TEMP_BUFFER, OnPlayMemBlockDone, m_pPlayIoOver) )
{
#ifdef _DEBUG
CHAR sError[1024];
SsmGetLastErrMsg( sError );
theApp.Message( MSG_ERROR, sError );
#endif
m_pPlayIoOver->Internal = 0;
return nResult;
}
m_pPlayIoOver->Offset++;
m_pPlayIoOver->Internal = 0;
ResetEvent( m_pPlayIoOver->hEvent );
//TRACE("%i-> ReplayWith in [%i]\n", GetTickCount(), m_pPlayIoOver->Offset);
return 0;
}