Searched refs:element_size (Results 1 - 12 of 12) sorted by relevance

/dovecot/src/lib/
H A Darray.c10 i_assert(idx * array->element_size < array->buffer->used);
11 return PTR_OFFSET(array->buffer->data, idx * array->element_size);
16 return buffer_get_space_unsafe(array->buffer, idx * array->element_size,
17 array->element_size);
22 buffer_write(array->buffer, idx * array->element_size,
23 data, array->element_size);
28 buffer_write_zero(array->buffer, idx * array->element_size,
29 array->element_size);
37 pos = idx * array->element_size;
38 buffer_copy(array->buffer, pos + array->element_size,
114 const size_t element_size = array->element_size; local
[all...]
H A Darray.h115 size_t element_size)
118 array->element_size = element_size;
120 #define array_create_from_buffer(array, buffer, element_size) \
121 array_create_from_buffer_i(&(array)->arr, buffer, element_size)
125 size_t element_size, unsigned int init_count)
129 buffer = buffer_create_dynamic(pool, init_count * element_size);
130 array_create_from_buffer_i(array, buffer, element_size);
132 #define array_create(array, pool, element_size, init_count) \
133 array_create_i(&(array)->arr, pool, element_size, init_coun
114 array_create_from_buffer_i(struct array *array, buffer_t *buffer, size_t element_size) argument
124 array_create_i(struct array *array, pool_t pool, size_t element_size, unsigned int init_count) argument
[all...]
H A Darray-decl.h14 size_t element_size; member in struct:array
H A Dbsearch-insert-pos.c47 array->element_size, cmp, idx_r);
H A Daqueue.c14 aqueue->arr->element_size;
36 aqueue->arr->element_size;
/dovecot/src/lib-index/
H A Dmail-index-util.c119 i_assert(array->arr.element_size == sizeof(seq) + aligned_record_size);
H A Dmail-index-transaction-sort-appends.c47 old_array->arr.element_size, ext_count);
54 old_array->arr.element_size -
H A Dmail-index-transaction-finish.c250 memcpy(new_range, range, array->arr.element_size);
H A Dmail-index-transaction-view.c423 ext_hdr.record_size = ext_buf->arr.element_size - sizeof(uint32_t);
H A Dmail-transaction-log-view.c537 if ((uids->arr.buffer->used % uids->arr.element_size) != 0) {
H A Dmail-index-transaction-update.c748 old_array.arr.element_size);
/dovecot/src/lib-smtp/
H A Dtest-smtp-params.c180 .element_size = sizeof(struct smtp_param)
191 .element_size = sizeof(struct smtp_param)
568 .element_size = sizeof(struct smtp_param)
579 .element_size = sizeof(struct smtp_param)

Completed in 76 milliseconds