Lines Matching refs:skip

216 			i_assert(stream->skip == stream->pos);
255 size_t prev_skip = _stream->skip, prev_pos = _stream->pos;
276 i_assert((_stream->pos - _stream->skip) == (prev_pos - prev_skip));
305 old_size = _stream->pos - _stream->skip;
307 i_assert(old_size <= _stream->pos - _stream->skip);
310 i_assert(_stream->skip != _stream->pos);
320 i_assert(old_size == _stream->pos - _stream->skip);
328 i_assert(_stream->skip < _stream->pos);
329 i_assert((size_t)ret+old_size == _stream->pos - _stream->skip);
372 stream->pos -= stream->skip;
373 stream->skip = 0;
420 data_size = _stream->pos - _stream->skip;
424 _stream->skip += count;
426 _stream->skip == _stream->pos) {
427 _stream->skip = _stream->pos = 0;
435 _stream->skip = _stream->pos;
566 ret = (char *)stream->w_buffer + stream->skip;
572 str_append_n(stream->line_str, stream->buffer + stream->skip,
573 end - stream->skip);
579 stream->istream.v_offset += i - stream->skip;
580 stream->skip = i;
586 if (_stream->istream.eof && _stream->skip != _stream->pos &&
599 if (_stream->skip >= _stream->pos)
602 pos = memchr(_stream->buffer + _stream->skip, '\n',
603 _stream->pos - _stream->skip);
669 if (_stream->skip >= _stream->pos) {
693 _stream->skip = _stream->pos = 0;
699 *size_r = _stream->pos - _stream->skip;
700 return _stream->buffer + _stream->skip;
716 if (_stream->skip >= _stream->pos || _stream->w_buffer == NULL) {
721 *size_r = _stream->pos - _stream->skip;
722 return _stream->w_buffer + _stream->skip;
767 if (stream->skip != stream->pos) {
768 memmove(stream->w_buffer, stream->w_buffer + stream->skip,
769 stream->pos - stream->skip);
771 stream->pos -= stream->skip;
773 stream->skip = 0;
839 if (stream->skip > 0) {
866 size_t old_skip = stream->skip;
868 /* try first with skip=0, so no compression is done */
869 stream->skip = 0;
871 stream->skip = old_skip;
995 stream->skip = stream->pos = 0;
1010 available = stream->pos - stream->skip;