Searched refs:skip (Results 1 - 25 of 51) sorted by relevance

123

/dovecot/src/lib-mail/
H A Dtest-message-header-encode.c54 unsigned int i, j, skip; local
62 for (skip = 0; skip < 2; skip++) {
69 message_header_encode_q(str_data(input) + skip,
70 str_len(input) - skip, str,
72 test_assert(verify_q(str_c(str), i, skip == 0));
141 unsigned int i, j, skip; local
149 for (skip = 0; skip <
[all...]
H A Distream-qp-decoder.c41 if (stream->skip > 0) {
42 i_assert(stream->skip <= bstream->buf->used);
43 buffer_delete(bstream->buf, 0, stream->skip);
44 stream->pos -= stream->skip;
45 stream->skip = 0;
113 stream->skip = stream->pos = 0;
H A Distream-qp-encoder.c38 if (stream->skip > 0) {
39 i_assert(stream->skip <= bstream->buf->used);
40 buffer_delete(bstream->buf, 0, stream->skip);
41 stream->pos -= stream->skip;
42 stream->skip = 0;
99 stream->skip = stream->pos = 0;
H A Dmessage-header-parser.c60 size_t i, size, startpos, colon_pos, parse_size, skip = 0; local
98 skip = startpos;
102 i_assert(skip == 0);
116 skip = 2;
119 skip = 1;
127 i_assert(skip == 0);
161 skip = size;
236 skip = i+1;
281 /* get value. skip all LWSP after ':'. Note that
286 LWSP, then skip onl
[all...]
/dovecot/src/lib/
H A Distream-hash.c22 uoff_t skip; local
34 skip = hstream->high_offset - stream->istream.v_offset;
35 if (skip < (size_t)size) {
36 hstream->high_offset += (size-skip);
38 data+skip, size-skip);
61 stream->skip = stream->pos = 0;
H A Distream-callback.c35 if (stream->skip > 0) {
36 buffer_delete(cstream->buf, 0, stream->skip);
37 stream->pos -= stream->skip;
38 cstream->prev_pos -= stream->skip;
39 stream->skip = 0;
H A Distream.c216 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;
[all...]
H A Distream-tee.c32 tstream->istream.skip = tstream->istream.pos = 0;
35 old_used = tstream->istream.pos - tstream->istream.skip;
39 tstream->istream.skip = tstream->istream.istream.v_offset -
41 i_assert(tstream->istream.skip + old_used <= size);
42 tstream->istream.pos = tstream->istream.skip + old_used;
58 if (tstream->istream.skip < min_skip &&
60 min_skip = tstream->istream.skip;
138 (stream->pos - stream->skip);
146 if (ret == -2 && stream->skip != 0) {
170 i_assert(stream->istream.v_offset + (stream->pos - stream->skip)
[all...]
H A Distream-chain.c140 (cstream->istream.skip + cstream->prev_stream_left);
149 cstream->istream.skip = 0;
170 i_assert(stream->skip >= cstream->prev_skip);
171 bytes_skipped = stream->skip - cstream->prev_skip;
174 /* no need to worry about buffers, skip everything */
185 stream->skip -= bytes_skipped;
187 cstream->prev_skip = stream->skip;
214 i_assert(stream->pos >= stream->skip + cstream->prev_stream_left);
215 cur_data_pos = stream->pos - (stream->skip + cstream->prev_stream_left);
242 cstream->prev_skip = stream->skip;
[all...]
H A Distream-failure-at.c33 new_offset = stream->istream.v_offset + (stream->pos - stream->skip);
38 stream->pos = stream->skip;
48 stream->istream.v_offset + stream->skip;
49 i_assert(new_pos >= stream->skip &&
H A Distream-mmap.c87 return stream->pos - stream->skip;
95 aligned_skip = stream->skip & ~mmap_pagemask;
97 /* didn't skip enough bytes */
101 stream->skip -= aligned_skip;
125 stream->skip = stream->pos = 0;
149 i_assert(stream->pos - stream->skip > 0);
150 return stream->pos - stream->skip;
162 stream->skip = stream->pos = v_offset - mstream->mmap_offset;
166 stream->skip = stream->pos = v_offset;
177 stream->skip
[all...]
H A Distream-concat.c88 cstream->istream.pos - cstream->istream.skip);
105 cstream->istream.skip = 0;
114 i_assert(stream->skip >= cstream->prev_skip);
115 bytes_skipped = stream->skip - cstream->prev_skip;
118 /* no need to worry about buffers, skip everything */
132 stream->skip -= bytes_skipped;
134 cstream->prev_skip = stream->skip;
151 i_assert(stream->pos >= stream->skip + cstream->prev_stream_left);
152 cur_data_pos = stream->pos - (stream->skip + cstream->prev_stream_left);
179 if (stream->pos - stream->skip >
[all...]
H A Distream-seekable.c188 i_assert(stream->pos == 0 && stream->skip == 0);
189 stream->skip = stream->istream.v_offset;
191 size = stream->pos - stream->skip;
208 /* change skip to 0 temporarily so i_stream_try_alloc() won't try to
210 size_t old_skip = stream->skip;
211 stream->skip = 0;
213 stream->skip = old_skip;
273 stream->buffer = CONST_PTR_OFFSET(stream->buffer, stream->skip);
274 stream->pos -= stream->skip;
275 stream->skip
[all...]
H A Distream-file.c60 offset = stream->istream.v_offset + (stream->pos - stream->skip);
107 i_assert(stream->skip == stream->pos);
115 stream->skip += fstream->skip_left;
138 stream->skip = stream->pos = 0;
149 stream->skip = stream->pos = 0;
H A Distream-base64-decoder.c115 pre_count = stream->pos - stream->skip;
117 post_count = stream->pos - stream->skip;
135 stream->skip = stream->pos = 0;
H A Distream-limit.c37 (stream->pos - stream->skip) >= lstream->v_size) {
42 stream->pos -= stream->skip;
43 stream->skip = 0;
/dovecot/src/lib-test/
H A Dtest-istream.c28 i_assert(stream->skip <= stream->pos);
30 if (stream->pos - stream->skip >= tstream->istream.max_buffer_size) {
31 i_assert(stream->skip != stream->pos);
42 stream->skip = (stream->skip - tstream->skip_diff) +
51 if (stream->max_buffer_size < (size_t)-1 - stream->skip &&
52 cur_max > stream->skip + stream->max_buffer_size)
53 cur_max = stream->skip + stream->max_buffer_size;
104 stream->skip = v_offset + tstream->skip_diff;
105 stream->pos = stream->skip;
[all...]
/dovecot/src/auth/
H A Dauth-settings.h16 const char *skip; member in struct:auth_passdb_settings
33 const char *skip; member in struct:auth_userdb_settings
H A Dauth.h41 enum auth_passdb_skip skip; member in struct:auth_passdb
59 enum auth_userdb_skip skip; member in struct:auth_userdb
H A Dtest-mock.c45 .skip = "never",
71 .skip = "never",
/dovecot/src/lib-compression/
H A Distream-bzlib.c57 high_offset = stream->istream.v_offset + (stream->pos - stream->skip);
73 (stream->pos - stream->skip);
138 (stream->pos - stream->skip);
184 stream->skip = stream->pos = 0;
196 uoff_t start_offset = stream->istream.v_offset - stream->skip;
209 stream->skip = v_offset - start_offset;
212 stream->pos = stream->skip;
218 size_t avail = stream->pos - stream->skip;
H A Distream-lzma.c54 (zstream->istream.pos - zstream->istream.skip);
66 high_offset = stream->istream.v_offset + (stream->pos - stream->skip);
82 (stream->pos - stream->skip);
193 stream->skip = stream->pos = 0;
205 uoff_t start_offset = stream->istream.v_offset - stream->skip;
218 stream->skip = v_offset - start_offset;
221 stream->pos = stream->skip;
227 size_t avail = stream->pos - stream->skip;
H A Distream-lz4.c106 stream->pos - stream->skip;
145 if (stream->pos - stream->skip >= i_stream_get_max_buffer_size(&stream->istream))
175 stream->skip = stream->pos = 0;
183 uoff_t start_offset = stream->istream.v_offset - stream->skip;
193 stream->skip = v_offset - start_offset;
195 stream->pos = stream->skip;
201 size_t avail = stream->pos - stream->skip;
/dovecot/src/lib-fts/
H A Dfts-tokenizer.c136 size_t skip = 0; local
143 ret = tok->v->next(tok, data, size, &skip, token_r, error_r);
148 size - tok->prev_skip, &skip,
153 i_assert(skip <= size - tok->prev_skip);
156 tok->prev_skip = tok->prev_skip + skip;
H A Dfts-tokenizer-address.c134 size_t skip = 0; local
137 while (skip < size && (!IS_ATEXT(data[skip]) && data[skip] != '.'))
138 skip++;
139 return skip;
171 /* not a localpart. skip past rest of no-good chars. */
207 /* not a domain. skip past no-good chars. */

Completed in 67 milliseconds

123