Lines Matching refs:bytes_in_buffer
227 int bytes_in_buffer; member
253 if (self->bytes_in_buffer > 0 && self->buf_begin != self->buffer) { in fill_buffer()
254 memmove(self->buffer, self->buf_begin, self->bytes_in_buffer); in fill_buffer()
260 bytes_to_read = self->bufsize - self->bytes_in_buffer; in fill_buffer()
265 char *buf = self->buffer + self->bytes_in_buffer; in fill_buffer()
271 self->bytes_in_buffer += actual_read; in fill_buffer()
286 if ( (self->bytes_in_buffer == 0 && fill_buffer(self) < 1) ) { in multipart_buffer_eof()
309 self->bytes_in_buffer = 0; in multipart_buffer_new()
338 char* ptr = memchr(self->buf_begin, '\n', self->bytes_in_buffer); in next_line()
351 self->bytes_in_buffer -= (self->buf_begin - line); in next_line()
356 if (self->bytes_in_buffer < self->bufsize) { in next_line()
362 self->bytes_in_buffer = 0; in next_line()
625 if (bytes > (size_t)self->bytes_in_buffer) { in multipart_buffer_read()
630 …if ((bound = php_ap_memstr(self->buf_begin, self->bytes_in_buffer, self->boundary_next, self->boun… in multipart_buffer_read()
632 …if (end && php_ap_memstr(self->buf_begin, self->bytes_in_buffer, self->boundary_next, self->bounda… in multipart_buffer_read()
636 max = self->bytes_in_buffer; in multipart_buffer_read()
654 self->bytes_in_buffer -= (int)len; in multipart_buffer_read()