Searched defs:prev_pos (Results 1 - 2 of 2) sorted by relevance

/dovecot/src/lib/
H A Distream-callback.c14 size_t prev_pos; member in struct:callback_istream
38 cstream->prev_pos -= stream->skip;
41 i_assert(cstream->buf->used >= cstream->prev_pos);
42 pos = cstream->prev_pos;
61 cstream->prev_pos = stream->pos = cstream->buf->used;
H A Distream.c255 size_t prev_skip = _stream->skip, prev_pos = _stream->pos; local
258 i_assert(prev_skip <= prev_pos);
261 else if (prev_pos - prev_skip <= 4)
262 memcpy(prev_buf, prev_data + prev_skip, prev_pos - prev_skip);
265 memcpy(prev_buf+2, prev_data + prev_pos - 2, 2);
276 i_assert((_stream->pos - _stream->skip) == (prev_pos - prev_skip));
277 if (prev_pos - prev_skip <= 4)
278 i_assert(memcmp(prev_buf, prev_data + prev_skip, prev_pos - prev_skip) == 0);
281 i_assert(memcmp(prev_buf+2, prev_data + prev_pos - 2, 2) == 0);

Completed in 18 milliseconds