Lines Matching refs:nBytes
1466 addInBuffer(struct ct_data *ct, char *dataToAdd, unsigned int nBytes)
1477 (void) memcpy(buffer, dataToAdd, nBytes);
1481 ct->ct_bufferWritePtr = buffer + nBytes;
1482 ct->ct_bufferPendingSize = nBytes;
1491 int len = MIN(nBytes, REMAIN_BYTES(bufferWritePtr));
1493 ct->ct_bufferPendingSize += nBytes;
1497 nBytes -= len;
1498 if (0 == nBytes) {
1517 (void) memcpy(ct->ct_buffer, dataToAdd, nBytes);
1518 ct->ct_bufferWritePtr = ct->ct_buffer + nBytes;
1525 consumeFromBuffer(struct ct_data *ct, unsigned int nBytes)
1527 ct->ct_bufferPendingSize -= nBytes;
1535 ct->ct_bufferReadPtr += nBytes;
1678 nb_send(struct ct_data *ct, void *buff, unsigned int nBytes)
1691 if (nBytes > (ct->ct_bufferSize - ct->ct_bufferPendingSize)) {
1696 if (nBytes > (ct->ct_bufferSize - ct->ct_bufferPendingSize))
1707 result = t_snd(ct->ct_fd, buff, nBytes, 0);
1720 if (result != nBytes) {
1722 nBytes - result) == -1) {
1735 iov[i].iov_len = nBytes;
1754 if (addInBuffer(ct, buff, nBytes) == -1) {
1771 if (len != nBytes) {
1773 nBytes-len) == -1) {
1779 return (nBytes);