Lines Matching refs:nread
986 void HdcSessionBase::ReadCtrlFromSession(uv_stream_t *uvpipe, ssize_t nread, const uv_buf_t *buf) in ReadCtrlFromSession() argument
991 if (nread < 0) { in ReadCtrlFromSession()
994 uv_strerror_r(static_cast<int>(nread), buffer, bufSize); in ReadCtrlFromSession()
999 if (nread > 64) { // 64 : max length in ReadCtrlFromSession()
1005 hSessionBase->DispatchSessionThreadCommand(uvpipe, hSession, (uint8_t *)buf->base, nread); in ReadCtrlFromSession()
1142 void HdcSessionBase::ReadCtrlFromMain(uv_stream_t *uvpipe, ssize_t nread, const uv_buf_t *buf) in ReadCtrlFromMain() argument
1149 if (nread < 0) { in ReadCtrlFromMain()
1152 uv_strerror_r(static_cast<int>(nread), buffer, bufSize); in ReadCtrlFromMain()
1156 if (nread % formatCommandSize != 0) { in ReadCtrlFromMain()
1157 WRITE_LOG(LOG_FATAL, "ReadCtrlFromMain size failed, nread == %d", nread); in ReadCtrlFromMain()
1167 if (index >= nread) { in ReadCtrlFromMain()