Lines Matching refs:head
30 size_t head;
105 size_t space = b->buf_sz - b->head;
108 memcpy(b->buf + b->head, buf, n);
111 b->head += n;
112 if (sz && b->head >= b->buf_sz) {
113 b->head = 0;
172 fflush(f); /* Could update b->head and b->wrapped */
176 write_lines(b->buf + b->head, b->buf_sz - b->head, b->backend, &remove_first);
178 write_lines(b->buf, b->head, b->backend, &remove_first);
181 b->head = 0;