Lines Matching refs:size
97 #define BUF_DEF_SIZE 256 /* Default buffer size */
109 bp->size += max(bp->size, 16);
110 bp->buffer = bmake_realloc(bp->buffer, bp->size);
132 if (__predict_false(count + numBytes >= bp->size)) {
133 bp->size += max(bp->size, numBytes + 16);
134 bp->buffer = bmake_realloc(bp->buffer, bp->size);
190 * Initialize a buffer. If no initial size is given, a reasonable
194 * size Initial size for the buffer
206 Buf_Init(Buffer *bp, int size)
208 if (size <= 0) {
209 size = BUF_DEF_SIZE;
211 bp->size = size;
213 bp->buffer = bmake_malloc(size);
245 buf->size = 0;
265 * If the buffer size is much greater than its content,
280 if (buf->size - buf->count >= BUF_COMPACT_LIMIT) {