Lines Matching refs:buffer
97 #define BUF_DEF_SIZE 256 /* Default buffer size */
102 * Extend buffer for single byte add.
110 bp->buffer = bmake_realloc(bp->buffer, bp->size);
116 * Add a number of bytes to the buffer.
134 bp->buffer = bmake_realloc(bp->buffer, bp->size);
137 ptr = bp->buffer + count;
163 return (bp->buffer);
169 * Throw away bytes in a buffer.
184 *bp->buffer = 0;
190 * Initialize a buffer. If no initial size is given, a reasonable
194 * size Initial size for the buffer
197 * A buffer to be given to other functions in this library.
200 * The buffer is created, the space allocated and pointers
213 bp->buffer = bmake_malloc(size);
214 *bp->buffer = 0;
220 * Nuke a buffer and all its resources.
227 * Data buffer, NULL if freed
230 * The buffer is freed.
239 data = buf->buffer;
247 buf->buffer = NULL;
256 * Nuke a buffer and return its data.
262 * Data buffer
265 * If the buffer size is much greater than its content,
266 * a new buffer will be allocated and the old one freed.
282 data = bmake_realloc(buf->buffer, buf->count + 1);