Lines Matching refs:nread
946 void HdcUARTBase::ReadDataFromUARTStream(uv_stream_t *stream, ssize_t nread, const uv_buf_t *buf)
954 if (nread < 0) {
955 uv_err_name_r(nread, buffer, bufSize);
957 WRITE_LOG(LOG_DEBUG, "%s sessionId:%u, nread:%zd %s streamSize %zu", __FUNCTION__,
958 hSession->sessionId, nread, buffer,
961 if (nread <= 0 or nread > signed(hSession->hUART->streamSize)) {
965 if (hSessionBase->FetchIOBuf(hSession, hSession->ioBuf, nread) < 0) {
975 hSession->hUART->streamSize -= nread;
976 WRITE_LOG(LOG_DEBUG, "%s sessionId:%u, nread:%d", __FUNCTION__, hSession->sessionId, nread);