Lines Matching refs:bufLen
1494 int LSAPI_ReqBodyGetLine_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen, int *getLF ) in LSAPI_ReqBodyGetLine_r() argument
1498 char * pBufEnd = pBuf + bufLen - 1; in LSAPI_ReqBodyGetLine_r()
1502 if (!pReq || (pReq->m_fd ==-1) ||( !pBuf )||(bufLen < 0 )|| !getLF ) in LSAPI_ReqBodyGetLine_r()
1541 ssize_t LSAPI_ReadReqBody_r( LSAPI_Request * pReq, char * pBuf, size_t bufLen ) in LSAPI_ReadReqBody_r() argument
1546 if (!pReq || (pReq->m_fd ==-1) || ( !pBuf )||(bufLen < 0 )) in LSAPI_ReadReqBody_r()
1553 if ( total < bufLen ) in LSAPI_ReadReqBody_r()
1554 bufLen = total; in LSAPI_ReadReqBody_r()
1560 if ( len > bufLen ) in LSAPI_ReadReqBody_r()
1561 len = bufLen; in LSAPI_ReadReqBody_r()
1566 bufLen -= len; in LSAPI_ReadReqBody_r()
1568 while( bufLen > 0 ) in LSAPI_ReadReqBody_r()
1570 len = lsapi_read( pReq->m_fd, pBuf, bufLen ); in LSAPI_ReadReqBody_r()
1575 bufLen -= len; in LSAPI_ReadReqBody_r()
1595 ssize_t bufLen; in LSAPI_Write_r() local
1629 bufLen = pReq->m_pRespBufPos - pReq->m_pRespBuf; in LSAPI_Write_r()
1633 packetLen = toWrite + bufLen; in LSAPI_Write_r()
1637 toWrite = packetLen - bufLen; in LSAPI_Write_r()
1648 if ( bufLen > 0 ) in LSAPI_Write_r()
1651 pReq->m_pIovecCur->iov_len = bufLen; in LSAPI_Write_r()
1654 bufLen = 0; in LSAPI_Write_r()
1767 int bufLen = pReq->m_pRespBufPos - pReq->m_pRespBuf; in Flush_RespBuf_r() local
1770 bufLen + LSAPI_PACKET_HEADER_LEN ); in Flush_RespBuf_r()
1771 pReq->m_totalLen += bufLen + LSAPI_PACKET_HEADER_LEN; in Flush_RespBuf_r()
1777 if ( bufLen > 0 ) in Flush_RespBuf_r()
1780 pReq->m_pIovecCur->iov_len = bufLen; in Flush_RespBuf_r()
1783 bufLen = 0; in Flush_RespBuf_r()