Lines Matching refs:end
42 len = mb->end - mb->head - 1; in membuff_putrawflex()
132 len = mb->end - mb->tail; in membuff_getraw()
137 if (mb->tail == mb->end) in membuff_getraw()
231 return mb->end - mb->start; in membuff_size()
240 (int)(mb->end - mb->start)); in membuff_makecontig()
252 topsize = mb->end - mb->tail; in membuff_makecontig()
287 return mb->end == mb->start ? 0 : in membuff_free()
288 (mb->end - mb->start) - 1 - membuff_avail(mb); in membuff_free()
294 char *s, *end; in membuff_readline() local
298 end = mb->head >= mb->tail ? mb->head : mb->end; in membuff_readline()
299 for (len = 0, s = mb->tail; s < end && len < maxlen - 1; str++) { in membuff_readline()
306 if (s == end && mb->tail > mb->head) { in membuff_readline()
308 end = mb->head; in membuff_readline()
321 mb->tail = s == mb->end ? mb->start : s; in membuff_readline()
334 for (orig = mb->end - mb->start, size = orig; size < orig + by;) in membuff_extend_by()
357 mb->end = mb->start + size; in membuff_extend_by()
365 mb->end = mb->start + size; in membuff_init()
381 mb->end = NULL; in membuff_uninit()