Lines Matching refs:bufPtr
772 int HdcSessionBase::SendByProtocol(HSession hSession, uint8_t *bufPtr, const int bufLen, bool echo ) in SendByProtocol() argument
776 delete[] bufPtr; in SendByProtocol()
785 ret = pTCP->WriteUvTcpFd(&hSession->hChildWorkTCP, bufPtr, bufLen); in SendByProtocol()
788 ret = pTCP->WriteUvTcpFd(&hSession->hWorkTCP, bufPtr, bufLen); in SendByProtocol()
790 ret = pTCP->WriteUvTcpFd(&hSession->hChildWorkTCP, bufPtr, bufLen); in SendByProtocol()
797 ret = pUSB->SendUSBBlock(hSession, bufPtr, bufLen); in SendByProtocol()
798 delete[] bufPtr; in SendByProtocol()
804 ret = pUART->SendUARTData(hSession, bufPtr, bufLen); in SendByProtocol()
805 delete[] bufPtr; in SendByProtocol()
899 int HdcSessionBase::OnRead(HSession hSession, uint8_t *bufPtr, const int bufLen) in OnRead() argument
903 if (memcmp(bufPtr, PACKET_FLAG.c_str(), PACKET_FLAG.size())) { in OnRead()
904 WRITE_LOG(LOG_FATAL, "PACKET_FLAG incorrect %x %x", bufPtr[0], bufPtr[1]); in OnRead()
907 struct PayloadHead *payloadHead = reinterpret_cast<struct PayloadHead *>(bufPtr); in OnRead()
922 if (DecryptPayload(hSession, payloadHead, bufPtr + packetHeadSize)) { in OnRead()