Lines Matching refs:bufPtr
756 int HdcSessionBase::SendByProtocol(HSession hSession, uint8_t *bufPtr, const int bufLen, bool echo ) in SendByProtocol() argument
768 ret = pTCP->WriteUvTcpFd(&hSession->hChildWorkTCP, bufPtr, bufLen); in SendByProtocol()
771 ret = pTCP->WriteUvTcpFd(&hSession->hWorkTCP, bufPtr, bufLen); in SendByProtocol()
773 ret = pTCP->WriteUvTcpFd(&hSession->hChildWorkTCP, bufPtr, bufLen); in SendByProtocol()
780 ret = pUSB->SendUSBBlock(hSession, bufPtr, bufLen); in SendByProtocol()
781 delete[] bufPtr; in SendByProtocol()
787 ret = pUART->SendUARTData(hSession, bufPtr, bufLen); in SendByProtocol()
788 delete[] bufPtr; in SendByProtocol()
882 int HdcSessionBase::OnRead(HSession hSession, uint8_t *bufPtr, const int bufLen) in OnRead() argument
886 if (memcmp(bufPtr, PACKET_FLAG.c_str(), PACKET_FLAG.size())) { in OnRead()
887 WRITE_LOG(LOG_FATAL, "PACKET_FLAG incorrect %x %x", bufPtr[0], bufPtr[1]); in OnRead()
890 struct PayloadHead *payloadHead = reinterpret_cast<struct PayloadHead *>(bufPtr); in OnRead()
905 if (DecryptPayload(hSession, payloadHead, bufPtr + packetHeadSize)) { in OnRead()