Lines Matching defs:item_size
3029 m->root_container.item_size = m->root_container.n_offsets > 0 ? m->root_container.offsets[0] : 0;
3233 c->item_size = c->offsets[c->offset_index+1] - *rindex;
3241 c->item_size = sz;
3274 c->item_size = c->offsets[c->offset_index+1] - *rindex;
3288 c->item_size = 0;
3413 r = message_peek_body(m, &rindex, 1, c->item_size, &q);
3418 ok = validate_string(q, c->item_size-1);
3420 ok = validate_object_path(q, c->item_size-1);
3422 ok = validate_signature(q, c->item_size-1);
3434 if ((size_t) sz != c->item_size)
3440 r = message_peek_body(m, &rindex, align, c->item_size, &q);
3614 size_t *item_size,
3626 assert(item_size);
3664 } else if (c->item_size <= 0) {
3667 *item_size = 0;
3674 *item_size = bus_gvariant_get_size(contents);
3683 sz = bus_gvariant_determine_word_size(c->item_size, 0);
3685 where = rindex + c->item_size - sz;
3691 if (framing > c->item_size - sz)
3693 if ((c->item_size - framing) % sz != 0)
3696 *n_offsets = (c->item_size - framing) / sz;
3711 if (x > c->item_size - sz)
3720 *item_size = (*offsets)[0] - rindex;
3735 size_t *item_size) {
3745 assert(item_size);
3765 if (1+k > c->item_size)
3768 where = rindex + c->item_size - (1+k);
3779 *item_size = c->item_size - (1+k);
3810 size_t *item_size,
3822 assert(item_size);
3835 *item_size = 0;
3947 *item_size = (*offsets)[0] - m->rindex;
3955 size_t *item_size,
3964 assert(item_size);
3977 return build_struct_offsets(m, contents, c->item_size, item_size, offsets, n_offsets);
3986 size_t *item_size,
3996 assert(item_size);
4013 r = enter_struct_or_dict_entry(m, c, contents, item_size, offsets, n_offsets);
4027 size_t *item_size,
4054 r = enter_struct_or_dict_entry(m, c, contents, item_size, offsets, n_offsets);
4072 size_t n_offsets = 0, item_size = 0;
4136 r = bus_message_enter_array(m, c, contents, &array_size, &item_size, &offsets, &n_offsets);
4138 r = bus_message_enter_variant(m, c, contents, &item_size);
4140 r = bus_message_enter_struct(m, c, contents, &item_size, &offsets, &n_offsets);
4142 r = bus_message_enter_dict_entry(m, c, contents, &item_size, &offsets, &n_offsets);
4168 w->end = m->rindex + c->item_size;
4171 w->item_size = item_size;
4329 if (c->item_size < 2)
4338 for (k = 2; k <= c->item_size; k++) {
4341 where = m->rindex + c->item_size - k;
4350 if (k > c->item_size)
4418 c->item_size = (c->n_offsets > 0 ? c->offsets[0] : c->end) - c->begin;
4876 size_t item_size,
4885 if (BUS_MESSAGE_IS_GVARIANT(m) && item_size != 4)
4903 size_t item_size,
4912 if (BUS_MESSAGE_IS_GVARIANT(m) && item_size != 8)
4931 size_t item_size,
4943 if (item_size <= 0)
4946 r = message_peek_fields(m, ri, 1, item_size, &q);
4950 l = item_size - 1;
4981 size_t item_size,
4993 if (item_size <= 0)
4996 r = message_peek_fields(m, ri, 1, item_size, &q);
5000 l = item_size - 1;
5248 size_t item_size = (size_t) -1;
5287 item_size = end - ri;
5288 r = message_peek_fields(m, &where, 1, item_size, &q);
5292 b = memrchr(q, 0, item_size);
5296 sig = strndup(b+1, item_size - (b+1-(char*) q));
5301 item_size = b - (char*) q;
5321 r = message_peek_field_string(m, object_path_is_valid, &ri, item_size, &m->path);
5332 r = message_peek_field_string(m, interface_name_is_valid, &ri, item_size, &m->interface);
5343 r = message_peek_field_string(m, member_name_is_valid, &ri, item_size, &m->member);
5354 r = message_peek_field_string(m, error_name_is_valid, &ri, item_size, &m->error.name);
5368 r = message_peek_field_string(m, service_name_is_valid, &ri, item_size, &m->destination);
5379 r = message_peek_field_string(m, service_name_is_valid, &ri, item_size, &m->sender);
5402 r = message_peek_field_signature(m, &ri, item_size, &s);
5426 r = message_peek_field_uint64(m, &ri, item_size, &m->reply_cookie);
5436 r = message_peek_field_uint32(m, &ri, item_size, &serial);
5455 r = message_peek_field_uint32(m, &ri, item_size, &unix_fds);
5525 &m->root_container.item_size,