C++远程监控系统发送端CAV8Buffer(2)-创新互联
//
// 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] =
你是否还在寻找稳定的海外服务器提供商?创新互联www.cdcxhl.cn海外机房具备T级流量清洗系统配攻击溯源,准确流量调度确保服务器高可用性,企业级服务器适合批量采购,新人活动首月15元起,快前往官网查看详情吧
当前题目:C++远程监控系统发送端CAV8Buffer(2)-创新互联
文章链接:http://pwwzsj.com/article/peehp.html