Lines Matching refs:bytes_in_buffer
192 int bytes_in_buffer; member
218 if (self->bytes_in_buffer > 0 && self->buf_begin != self->buffer) { in fill_buffer()
219 memmove(self->buffer, self->buf_begin, self->bytes_in_buffer); in fill_buffer()
225 bytes_to_read = self->bufsize - self->bytes_in_buffer; in fill_buffer()
230 char *buf = self->buffer + self->bytes_in_buffer; in fill_buffer()
236 self->bytes_in_buffer += actual_read; in fill_buffer()
251 return self->bytes_in_buffer == 0 && fill_buffer(self) < 1; in multipart_buffer_eof()
270 self->bytes_in_buffer = 0; in multipart_buffer_new()
299 char* ptr = memchr(self->buf_begin, '\n', self->bytes_in_buffer); in next_line()
312 self->bytes_in_buffer -= (self->buf_begin - line); in next_line()
317 if (self->bytes_in_buffer < self->bufsize) { in next_line()
323 self->bytes_in_buffer = 0; in next_line()
586 if (bytes > (size_t)self->bytes_in_buffer) { in multipart_buffer_read()
591 …if ((bound = php_ap_memstr(self->buf_begin, self->bytes_in_buffer, self->boundary_next, self->boun… in multipart_buffer_read()
593 …if (end && php_ap_memstr(self->buf_begin, self->bytes_in_buffer, self->boundary_next, self->bounda… in multipart_buffer_read()
597 max = self->bytes_in_buffer; in multipart_buffer_read()
615 self->bytes_in_buffer -= (int)len; in multipart_buffer_read()