Lines Matching defs:index
121 m->root_container.index = 0;
1481 if (c->signature && c->signature[c->index]) {
1484 if (c->signature[c->index] != type)
1649 c->index++;
1674 if (c->signature && c->signature[c->index]) {
1677 if (c->signature[c->index] != SD_BUS_TYPE_STRING)
1711 c->index++;
1771 if (c->signature && c->signature[c->index]) {
1775 if (c->signature[c->index] != SD_BUS_TYPE_ARRAY)
1778 if (!startswith(c->signature + c->index + 1, contents))
1781 nindex = c->index + 1 + strlen(contents);
1844 c->index = nindex;
1864 if (c->signature && c->signature[c->index]) {
1866 if (c->signature[c->index] != SD_BUS_TYPE_VARIANT)
1902 c->index++;
1926 if (c->signature && c->signature[c->index]) {
1931 if (c->signature[c->index] != SD_BUS_TYPE_STRUCT_BEGIN ||
1932 !startswith(c->signature + c->index + 1, contents) ||
1933 c->signature[c->index + 1 + l] != SD_BUS_TYPE_STRUCT_END)
1936 nindex = c->index + 1 + l + 1;
1975 c->index = nindex;
2001 if (c->signature && c->signature[c->index]) {
2006 if (c->signature[c->index] != SD_BUS_TYPE_DICT_ENTRY_BEGIN ||
2007 !startswith(c->signature + c->index + 1, contents) ||
2008 c->signature[c->index + 1 + l] != SD_BUS_TYPE_DICT_ENTRY_END)
2069 /* Save old index in the parent container, in case we have to
2071 c->saved_index = c->index;
2094 w->index = 0;
2294 if (c->signature && c->signature[c->index] != 0)
2797 if (c->signature && c->signature[c->index]) {
2800 if (c->signature[c->index] != SD_BUS_TYPE_STRING)
2846 c->index++;
3027 m->root_container.index = 0;
3130 return !c->signature || c->signature[c->index] == 0;
3133 static bool message_end_of_array(sd_bus_message *m, size_t index) {
3143 return index >= c->end;
3146 return index >= c->begin + BUS_MESSAGE_BSWAP32(m, *c->array_size);
3166 static struct bus_body_part* find_part(sd_bus_message *m, size_t index, size_t sz, void **p) {
3173 if (m->cached_rindex_part && index >= m->cached_rindex_part_begin) {
3182 if (index < begin)
3185 if (index + sz <= begin + part->size) {
3192 *p = (uint8_t*) part->data + index - begin;
3256 r = signature_element_length(c->signature + c->index, &n);
3260 r = signature_element_length(c->signature + c->index + n, &j);
3265 memcpy(t, c->signature + c->index + n, j);
3403 if (c->signature[c->index] != type)
3604 c->index++;
3633 if (!c->signature || c->signature[c->index] == 0)
3636 if (c->signature[c->index] != SD_BUS_TYPE_ARRAY)
3639 if (!startswith(c->signature + c->index + 1, contents))
3726 c->index += 1 + strlen(contents);
3753 if (!c->signature || c->signature[c->index] == 0)
3756 if (c->signature[c->index] != SD_BUS_TYPE_VARIANT)
3801 c->index++;
4003 if (!c->signature || c->signature[c->index] == 0)
4008 if (c->signature[c->index] != SD_BUS_TYPE_STRUCT_BEGIN ||
4009 !startswith(c->signature + c->index + 1, contents) ||
4010 c->signature[c->index + 1 + l] != SD_BUS_TYPE_STRUCT_END)
4018 c->index += 1 + l + 1;
4044 if (!c->signature || c->signature[c->index] == 0)
4049 if (c->signature[c->index] != SD_BUS_TYPE_DICT_ENTRY_BEGIN ||
4050 !startswith(c->signature + c->index + 1, contents) ||
4051 c->signature[c->index + 1 + l] != SD_BUS_TYPE_DICT_ENTRY_END)
4059 c->index += 1 + l + 1;
4132 c->saved_index = c->index;
4157 w->index = 0;
4191 if (c->signature && c->signature[c->index] != 0)
4214 saved = c->index;
4215 c->index = c->saved_index;
4217 c->index = saved;
4242 /* Correct index of new top-level container */
4244 c->index = c->saved_index;
4262 if (bus_type_is_basic(c->signature[c->index])) {
4266 *type = c->signature[c->index];
4270 if (c->signature[c->index] == SD_BUS_TYPE_ARRAY) {
4276 r = signature_element_length(c->signature+c->index+1, &l);
4282 sig = strndup(c->signature + c->index + 1, l);
4296 if (c->signature[c->index] == SD_BUS_TYPE_STRUCT_BEGIN ||
4297 c->signature[c->index] == SD_BUS_TYPE_DICT_ENTRY_BEGIN) {
4303 r = signature_element_length(c->signature+c->index, &l);
4308 sig = strndup(c->signature + c->index + 1, l - 2);
4317 *type = c->signature[c->index] == SD_BUS_TYPE_STRUCT_BEGIN ? SD_BUS_TYPE_STRUCT : SD_BUS_TYPE_DICT_ENTRY;
4322 if (c->signature[c->index] == SD_BUS_TYPE_VARIANT) {
4413 c->index = 0;
4655 r = signature_element_length(c->signature + c->index, &l);
4659 types = strndupa(c->signature + c->index, l);