Searched refs:src_size (Results 1 - 21 of 21) sorted by relevance

/dovecot/src/lib-mail/
H A Dquoted-printable.h5 int quoted_printable_q_decode(const unsigned char *src, size_t src_size,
H A Dquoted-printable.c8 int quoted_printable_q_decode(const unsigned char *src, size_t src_size, argument
18 for (src_pos = 0; src_pos < src_size; src_pos++) {
31 if (src_pos+2 >= src_size)
47 buffer_append(dest, src + next, src_size - next);
H A Dqp-decoder.h12 size_t src_size, size_t *invalid_src_pos_r,
H A Dqp-encoder.h19 void qp_encoder_more(struct qp_encoder *qp, const void *src, size_t src_size);
H A Dqp-encoder.c90 void qp_encoder_more(struct qp_encoder *qp, const void *_src, size_t src_size) argument
93 i_assert(_src != NULL || src_size == 0);
94 if (src_size == 0)
102 for(unsigned int i = 0; i < src_size; i++) {
H A Dtest-message-header-decode.c21 const unsigned char *src, size_t *src_size, buffer_t *dest)
23 buffer_append(dest, src, *src_size);
20 charset_to_utf8(struct charset_translation *t ATTR_UNUSED, const unsigned char *src, size_t *src_size, buffer_t *dest) argument
H A Dqp-decoder.c53 size_t src_size)
55 size_t i, start = 0, ret = src_size;
57 for (i = 0; i < src_size; i++) {
131 size_t src_size, size_t *invalid_src_pos_r,
140 for (i = 0; i < src_size; ) {
143 i += qp_decoder_more_text(qp, src+i, src_size-i);
52 qp_decoder_more_text(struct qp_decoder *qp, const unsigned char *src, size_t src_size) argument
130 qp_decoder_more(struct qp_decoder *qp, const unsigned char *src, size_t src_size, size_t *invalid_src_pos_r, const char **error_r) argument
/dovecot/src/lib/
H A Dbase32.h8 void base32_encode(bool pad, const void *src, size_t src_size,
15 void base32hex_encode(bool pad, const void *src, size_t src_size,
27 int base32_decode(const void *src, size_t src_size,
29 int base32hex_decode(const void *src, size_t src_size,
H A Dbase64.h5 void base64_encode(const void *src, size_t src_size, buffer_t *dest);
17 int base64_decode(const void *src, size_t src_size,
H A Dstrescape.c33 void str_append_unescaped(string_t *dest, const void *src, size_t src_size) argument
38 while (i < src_size) {
39 for (; i < src_size; i++) {
46 if (i < src_size) {
47 if (++i == src_size)
104 void str_append_tabescaped_n(string_t *dest, const unsigned char *src, size_t src_size) argument
106 for (size_t i = 0; i < src_size; i++) {
156 void str_append_tabunescaped(string_t *dest, const void *src, size_t src_size) argument
161 while (i < src_size) {
162 for (; i < src_size;
[all...]
H A Dbase64.c46 void base64_encode(const void *src, size_t src_size, buffer_t *dest) argument
48 const size_t res_size = MAX_BASE64_ENCODED_SIZE(src_size);
54 for (src_pos = 0; src_size - src_pos > 2; src_pos += 3, ptr += 4) {
65 switch (src_size - src_pos) {
89 int base64_decode(const void *src, size_t src_size, argument
97 for (src_pos = 0; src_pos+3 < src_size; ) {
146 for (; src_pos < src_size; src_pos++) {
H A Dbase32.c87 bool pad, const void *src, size_t src_size, buffer_t *dest)
98 for (src_pos = 0; src_pos + 4 < src_size; src_pos += 5) {
115 if (src_pos < src_size) {
117 switch (src_size - src_pos) {
164 void base32_encode(bool pad, const void *src, size_t src_size, argument
167 base32_encode_with_alphabet(b32enc, pad, src, src_size, dest);
170 void base32hex_encode(bool pad, const void *src, size_t src_size, argument
173 base32_encode_with_alphabet(b32hexenc, pad, src, src_size, dest);
181 const void *src, size_t src_size, size_t *src_pos_r,
194 for (src_pos = 0; src_pos < src_size; src_po
86 base32_encode_with_alphabet(const char *alph, bool pad, const void *src, size_t src_size, buffer_t *dest) argument
180 base32_decode_with_alphabet(const unsigned char *alph, const void *src, size_t src_size, size_t *src_pos_r, buffer_t *dest) argument
283 base32_decode(const void *src, size_t src_size, size_t *src_pos_r, buffer_t *dest) argument
289 base32hex_decode(const void *src, size_t src_size, size_t *src_pos_r, buffer_t *dest) argument
[all...]
/dovecot/src/lib-charset/
H A Dcharset-utf8.c52 const unsigned char *src, size_t *src_size, buffer_t *dest)
57 uni_utf8_partial_strlen_n(src, *src_size, &pos);
58 if (pos < *src_size) {
59 i_assert(*src_size - pos <= CHARSET_MAX_PENDING_BUF_SIZE);
60 *src_size = pos;
65 if (normalizer(src, *src_size, dest) < 0)
67 } else if (!uni_utf8_get_valid_data(src, *src_size, dest)) {
70 buffer_append(dest, src, *src_size);
96 const unsigned char *src, size_t *src_size, buffer_t *dest)
98 return charset_utf8_vfuncs->to_utf8(t, src, src_size, des
51 charset_utf8_to_utf8(normalizer_func_t *normalizer, const unsigned char *src, size_t *src_size, buffer_t *dest) argument
95 charset_to_utf8(struct charset_translation *t, const unsigned char *src, size_t *src_size, buffer_t *dest) argument
[all...]
H A Dcharset-iconv.c56 const unsigned char *src, size_t *src_size, buffer_t *dest,
66 *result = charset_utf8_to_utf8(t->normalizer, src, src_size, dest);
71 srcleft = *src_size;
90 *src_size -= srcleft;
104 const unsigned char *src, size_t *src_size,
113 i_assert(pos <= *src_size);
114 size = *src_size - pos;
127 if (pos < *src_size)
135 i_assert(*src_size - pos <= CHARSET_MAX_PENDING_BUF_SIZE);
136 *src_size
55 charset_to_utf8_try(struct charset_translation *t, const unsigned char *src, size_t *src_size, buffer_t *dest, enum charset_result *result) argument
103 iconv_charset_to_utf8(struct charset_translation *t, const unsigned char *src, size_t *src_size, buffer_t *dest) argument
[all...]
H A Dcharset-utf8-only.c40 const unsigned char *src, size_t *src_size,
43 return charset_utf8_to_utf8(t->normalizer, src, src_size, dest);
39 utf8only_charset_to_utf8(struct charset_translation *t, const unsigned char *src, size_t *src_size, buffer_t *dest) argument
H A Dcharset-utf8.h32 /* Translate src to UTF-8. src_size is updated to contain the number of
33 characters actually translated from src. The src_size should never shrink
41 const unsigned char *src, size_t *src_size, buffer_t *dest);
51 const unsigned char *src, size_t *src_size, buffer_t *dest);
H A Dcharset-utf8-private.h15 size_t *src_size, buffer_t *dest);
/dovecot/src/plugins/charset-alias/
H A Dcharset-alias-plugin.c31 size_t *src_size, buffer_t *dest);
97 size_t *src_size, buffer_t *dest)
100 return original_charset_utf8_vfuncs->to_utf8(t, src, src_size, dest);
95 charset_alias_to_utf8(struct charset_translation *t, const unsigned char *src, size_t *src_size, buffer_t *dest) argument
/dovecot/src/lib-storage/
H A Dmailbox-get.c39 const struct mail_transaction_expunge *src, size_t src_size)
43 end = src + src_size / sizeof(*src);
55 size_t src_size)
59 end = src + src_size / sizeof(*src);
/dovecot/src/lib-index/
H A Dmail-index-view-sync.c133 const struct seq_range *src, size_t src_size)
137 i_assert(src_size % sizeof(*src) == 0);
139 src_count = src_size / sizeof(*src);
147 size_t src_size)
151 i_assert(src_size % sizeof(*src) == 0);
153 src_count = src_size / sizeof(*src);
/dovecot/src/lib-settings/
H A Dsettings-parser.c1516 const uoff_t *src_size = src; local
1519 *dest_size = *src_size;
1523 const in_port_t *src_size = src; local
1526 *dest_size = *src_size;

Completed in 52 milliseconds