Lines Matching refs:nBytes
1427 addInBuffer(struct ct_data *ct, char *dataToAdd, unsigned int nBytes) in addInBuffer() argument
1438 (void) memcpy(buffer, dataToAdd, nBytes); in addInBuffer()
1442 ct->ct_bufferWritePtr = buffer + nBytes; in addInBuffer()
1443 ct->ct_bufferPendingSize = nBytes; in addInBuffer()
1452 int len = MIN(nBytes, REMAIN_BYTES(bufferWritePtr)); in addInBuffer()
1454 ct->ct_bufferPendingSize += nBytes; in addInBuffer()
1458 nBytes -= len; in addInBuffer()
1459 if (0 == nBytes) { in addInBuffer()
1478 (void) memcpy(ct->ct_buffer, dataToAdd, nBytes); in addInBuffer()
1479 ct->ct_bufferWritePtr = ct->ct_buffer + nBytes; in addInBuffer()
1486 consumeFromBuffer(struct ct_data *ct, unsigned int nBytes) in consumeFromBuffer() argument
1488 ct->ct_bufferPendingSize -= nBytes; in consumeFromBuffer()
1496 ct->ct_bufferReadPtr += nBytes; in consumeFromBuffer()
1645 nb_send(struct ct_data *ct, void *buff, unsigned int nBytes) in nb_send() argument
1658 if (nBytes > (ct->ct_bufferSize - ct->ct_bufferPendingSize)) { in nb_send()
1663 if (nBytes > (ct->ct_bufferSize - ct->ct_bufferPendingSize)) in nb_send()
1674 result = t_snd(ct->ct_fd, buff, nBytes, 0); in nb_send()
1687 if (result != nBytes) { in nb_send()
1689 nBytes - result) == -1) { in nb_send()
1702 iov[i].iov_len = nBytes; in nb_send()
1721 if (addInBuffer(ct, buff, nBytes) == -1) { in nb_send()
1738 if (len != nBytes) { in nb_send()
1740 nBytes-len) == -1) { in nb_send()
1746 return (nBytes); in nb_send()