Searched defs:bytes_left (Results 1 - 5 of 5) sorted by relevance

/dovecot/src/lib/
H A Dostream-hash.c20 size_t bytes_left, block_len; local
28 bytes_left = ret;
29 for (i = 0; i < iov_count && bytes_left > 0; i++) {
30 block_len = iov[i].iov_len <= bytes_left ?
31 iov[i].iov_len : bytes_left;
34 bytes_left -= block_len;
/dovecot/src/lib-http/
H A Dhttp-server-response.c278 size_t bytes_left, block_len; local
292 bytes_left = ret;
293 for (i = 0; i < iov_count && bytes_left > 0; i++) {
294 block_len = iov[i].iov_len <= bytes_left ?
295 iov[i].iov_len : bytes_left;
296 bytes_left -= block_len;
300 i_assert(iov[i].iov_len > bytes_left);
302 (iov[i].iov_base, iov[i].iov_len - bytes_left);
303 iov[i].iov_len = bytes_left;
/dovecot/src/lib-dict/
H A Ddict-redis.c37 unsigned int bytes_left; member in struct:redis_connection
165 if (conn->bytes_left == 0) {
178 if (line[0] != '$' || str_to_uint(line+1, &conn->bytes_left) < 0) {
183 conn->bytes_left += 2; /* include trailing CRLF */
187 if (size > conn->bytes_left)
188 size = conn->bytes_left;
191 conn->bytes_left -= size;
194 if (conn->bytes_left > 0)
/dovecot/src/lib-imap-storage/
H A Dimap-msgpart.c472 uoff_t bytes_left; local
496 bytes_left = virtual_size - msgpart->partial_offset;
497 if (msgpart->partial_size <= bytes_left) {
502 result->size = bytes_left;
/dovecot/src/lib-imap-client/
H A Dimapc-connection.c75 uoff_t bytes_left; member in struct:imapc_connection_literal
625 conn->literal.bytes_left = size;
637 if (conn->literal.bytes_left == 0)
641 if (size > conn->literal.bytes_left)
642 size = conn->literal.bytes_left;
651 conn->literal.bytes_left -= size;
653 if (conn->literal.bytes_left > 0)

Completed in 23 milliseconds