Home
last modified time | relevance | path

Searched refs:availTailIndex (Results 1 – 6 of 6) sorted by relevance

/developtools/hdc/src/common/
Dchannel.cpp137 hChannel->availTailIndex += nread; in ReadStream()
139 while (hChannel->availTailIndex > DWORD_SERIALIZE_SIZE) { in ReadStream()
146 if (hChannel->availTailIndex - DWORD_SERIALIZE_SIZE < size) { in ReadStream()
160 hChannel->availTailIndex -= (DWORD_SERIALIZE_SIZE + size); in ReadStream()
163 if (indexBuf > 0 && hChannel->availTailIndex > 0) { in ReadStream()
164 …move_s(hChannel->ioBuf, hChannel->bufSize, hChannel->ioBuf + indexBuf, hChannel->availTailIndex)) { in ReadStream()
361 buf->base = (char *)context->ioBuf + context->availTailIndex; in AllocCallback()
362 buf->len = context->bufSize - context->availTailIndex; in AllocCallback()
439 hChannel->availTailIndex = 0; in FreeChannelContinue()
Dsession.cpp579 hSession->availTailIndex = 0; in FreeSessionContinue()
944 hSession->availTailIndex += read; in FetchIOBuf()
945 while (!hSession->isDead && hSession->availTailIndex > static_cast<int>(sizeof(PayloadHead))) { in FetchIOBuf()
946 childRet = ptrConnect->OnRead(hSession, ioBuf + indexBuf, hSession->availTailIndex); in FetchIOBuf()
948 hSession->availTailIndex -= childRet; in FetchIOBuf()
955 hSession->availTailIndex = 0; // Preventing malicious data packages in FetchIOBuf()
961 if (indexBuf > 0 && hSession->availTailIndex > 0) { in FetchIOBuf()
962 …memmove_s(hSession->ioBuf, hSession->bufSize, hSession->ioBuf + indexBuf, hSession->availTailIndex) in FetchIOBuf()
966 … uint8_t *bufToZero = reinterpret_cast<uint8_t *>(hSession->ioBuf + hSession->availTailIndex); in FetchIOBuf()
967 Base::ZeroBuf(bufToZero, hSession->bufSize - hSession->availTailIndex); in FetchIOBuf()
[all …]
Ddefine_plus.h402 int availTailIndex; // buffer available data size member
459 availTailIndex = 0; in HdcSession()
512 int availTailIndex; // buffer available data size member
/developtools/hdc/src/host/
Dserver_for_client.cpp70 buf->base = (char *)context->ioBuf + context->availTailIndex; in AcceptClient()
792 hChannel->availTailIndex = 0; in ChannelHandShake()
797 hChannel->availTailIndex = 0; in ChannelHandShake()
811 hChannel->availTailIndex = 0; in ChannelHandShake()
Dclient.cpp524 hChannel->availTailIndex = 0; in PreHandshake()
537 hChannel->availTailIndex = 0; in PreHandshake()
551 hChannel->availTailIndex = 0; in PreHandshake()
/developtools/hdc/src/daemon/
Ddaemon.cpp626 hSession->availTailIndex = 0; in InitMod()
645 hSession->availTailIndex = 0; in InitMod()