Lines Matching refs:buffer

41  * A sequence of calls may be batched-up in a send buffer. The rpc call
126 uint_t ct_bufferSize; /* Total size of the buffer. */
128 char *ct_buffer; /* Pointer to the buffer. */
155 /* Default size of the IO buffer used in non blocking mode */
202 * must pick send and receive buffer sizes, 0 => use the default.
271 ct->ct_buffer = NULL; /* We allocate the buffer when needed. */
1073 /* Cannot resize the buffer if it is used. */
1097 * Returns the size of buffer allocated
1162 * return a larger buffer, left over from the last time we were
1451 /* Compute the # of bytes that remains until the end of the buffer */
1459 char *buffer;
1461 buffer = malloc(ct->ct_bufferSize);
1462 if (NULL == buffer) {
1466 (void) memcpy(buffer, dataToAdd, nBytes);
1468 ct->ct_buffer = buffer;
1469 ct->ct_bufferReadPtr = buffer;
1470 ct->ct_bufferWritePtr = buffer + nBytes;
1474 * For an already allocated buffer, two mem copies
1491 * If the write pointer is at the end of the buffer,
1504 * buffer
1519 * If the buffer contains no data, we set the two pointers at
1520 * the beginning of the buffer (to miminize buffer wraps).
1564 /* flush the buffer completely (possibly blocking) */
1582 * If a buffer was allocated for this
1677 * buffer. We have to check this now because it may be impossible
1678 * to send any data, so the message must be stored in the buffer.
1707 * in the buffer.
1717 * Some data pending in the buffer. We try to send
1718 * both buffer data and current message in one shot.
1754 /* So, empty the buffer. */