Searched defs:kw_hdr (Results 1 - 3 of 3) sorted by relevance

/dovecot/src/lib-index/
H A Dmail-index-map-hdr.c64 const struct mail_index_keyword_header *kw_hdr; local
83 kw_hdr = CONST_PTR_OFFSET(map->hdr_base, ext->hdr_offset);
84 kw_rec = (const void *)(kw_hdr + 1);
85 name = (const char *)(kw_rec + kw_hdr->keywords_count);
92 if (kw_hdr->keywords_count == old_count) {
98 if (kw_hdr->keywords_count < old_count) {
105 if ((size_t)(name - (const char *)kw_hdr) > ext->hdr_size) {
112 name_area_end_offset = (const char *)kw_hdr + ext->hdr_size - name;
113 for (i = 0; i < kw_hdr->keywords_count; i++) {
130 i_array_init(&map->keyword_idx_map, kw_hdr
[all...]
H A Dmail-index-sync-keywords.c42 const struct mail_index_keyword_header *kw_hdr; local
48 kw_hdr = CONST_PTR_OFFSET(map->hdr_base, ext->hdr_offset);
49 kw_rec = (const void *)(kw_hdr + 1);
50 name = (const char *)(kw_rec + kw_hdr->keywords_count);
52 if (kw_hdr->keywords_count == 0)
55 i_assert((size_t)(name - (const char *)kw_hdr) < ext->hdr_size);
57 new_kw_hdr = *kw_hdr;
61 offset = kw_rec[kw_hdr->keywords_count-1].name_offset;
66 buffer_append(buf, kw_rec, sizeof(*kw_rec) * kw_hdr->keywords_count);
119 struct mail_index_keyword_header *kw_hdr; local
[all...]
H A Dmail-index-fsck.c145 const struct mail_index_keyword_header *kw_hdr; local
158 kw_hdr = CONST_PTR_OFFSET(map->hdr_base, hdr_offset);
159 keywords_count = kw_hdr->keywords_count;
161 kw_rec = (const void *)(kw_hdr + 1);
164 name_pos = (size_t)(name_buffer - (const char *)kw_hdr);

Completed in 12 milliseconds