//
// PopOut()
DWORD CAV8Buffer::PopOut(LPSTR lpData, DWORD dwLength)
{
?for (DWORD dwIndex = 0; dwIndex< m_dwBlock; dwIndex++)
?{
??? ?DWORD dwPopBlock = m_pdwIndex[dwIndex];
??? ?DWORD dwOldLength = m_pdwLength[dwPopBlock];
??? ?if (m_pbFull[dwPopBlock])
??? ?{
??? ??? ?memcpy((void *)lpData, (const void *)m_plpArray[dwPopBlock], min(dwOldLength, dwLength));
??? ??? ?
??? ??? ?m_pdwLength[dwPopBlock] = 0;
??? ??? ?m_pbFull[dwPopBlock] = FALSE;
??? ??? ?
??? ??? ?return min(dwOldLength, dwLength);
??? ?}
?}
??? ??? ?
?return 0;
}
?
//
// ClearAll()
void CAV8Buffer::ClearAll()
{
?for (DWORD dwIndex = 0; dwIndex< m_dwBlock; dwIndex++)
?{
??? ?m_pdwIndex [dwIndex] =
你是否還在尋找穩(wěn)定的海外服務(wù)器提供商?創(chuàng)新互聯(lián)www.cdcxhl.cn海外機(jī)房具備T級(jí)流量清洗系統(tǒng)配攻擊溯源,準(zhǔn)確流量調(diào)度確保服務(wù)器高可用性,企業(yè)級(jí)服務(wù)器適合批量采購,新人活動(dòng)首月15元起,快前往官網(wǎng)查看詳情吧