Lines Matching defs:hdr_buf
387 buffer_t *hdr_buf;
395 hdr_buf = map->hdr_copy_buf;
396 i_assert(hdr_buf->used == map->hdr.header_size);
398 if (MAIL_INDEX_HEADER_SIZE_ALIGN(hdr_buf->used) != hdr_buf->used) {
400 buffer_append_zero(hdr_buf,
401 MAIL_INDEX_HEADER_SIZE_ALIGN(hdr_buf->used) -
402 hdr_buf->used);
407 ext_map_idx = mail_index_map_register_ext(map, name, hdr_buf->used,
413 buffer_append(hdr_buf, ext_hdr, sizeof(*ext_hdr));
414 buffer_append(hdr_buf, name, ext_hdr->name_size);
416 buffer_append_zero(hdr_buf,
417 MAIL_INDEX_HEADER_SIZE_ALIGN(hdr_buf->used) - hdr_buf->used +
419 i_assert(hdr_buf->used ==
421 i_assert((hdr_buf->used % sizeof(uint64_t)) == 0);
423 map->hdr.header_size = hdr_buf->used;
424 map->hdr_base = hdr_buf->data;