Lines Matching defs:signature
30 #include "dbus-signature.h"
152 DBusString signature;
171 if (!_dbus_string_init (&block->signature))
176 _dbus_string_free (&block->signature);
180 if (!_dbus_string_insert_bytes (&block->signature, 0, initial_offset,
184 !_dbus_string_append (&block->signature, FENCE_BYTES_STR) ||
187 _dbus_string_free (&block->signature);
202 state->saved_sig_len = _dbus_string_get_length (&block->signature) - N_FENCE_BYTES;
210 _dbus_string_delete (&block->signature,
212 _dbus_string_get_length (&block->signature) - state->saved_sig_len - N_FENCE_BYTES);
221 if (!_dbus_string_ends_with_c_str (&block->signature,
226 offset = _dbus_string_get_length (&block->signature) - N_FENCE_BYTES - 8;
230 _dbus_verbose_bytes_of_string (&block->signature,
232 _dbus_string_get_length (&block->signature) - offset);
233 _dbus_assert_not_reached ("block did not verify: bad bytes at end of signature");
250 _dbus_assert (_dbus_string_validate_nul (&block->signature,
261 _dbus_string_free (&block->signature);
270 _dbus_string_delete (&block->signature,
272 _dbus_string_get_length (&block->signature) - N_FENCE_BYTES - block->initial_offset);
288 &block->signature,
296 &block->signature,
297 _dbus_string_get_length (&block->signature) - N_FENCE_BYTES,
1077 const DBusString *signature;
1105 /* DBusTypeWriter assumes it's writing into an existing signature,
1108 if (!_dbus_string_insert_byte (&dest.signature,
1116 if (!_dbus_string_equal (&src->signature, &dest.signature))
1119 _dbus_verbose_bytes_of_string (&src->signature, 0,
1120 _dbus_string_get_length (&src->signature));
1122 _dbus_verbose_bytes_of_string (&dest.signature, 0,
1123 _dbus_string_get_length (&dest.signature));
1162 sig_len = _dbus_string_get_length (nid->signature);
1166 nid->signature, 0,
1171 nid->signature, 0,
1185 _dbus_assert (sig_len == _dbus_string_get_length (nid->signature));
1377 * 2. strcmp-compare with the signature we built
1379 * 4. type-iterate the signature and the value and see if they are the same type-wise
1386 /* DBusTypeWriter assumes it's writing into an existing signature,
1389 if (!_dbus_string_insert_byte (&nid->block->signature,
1402 if (!_dbus_string_equal_substring (nid->signature, 0, _dbus_string_get_length (nid->signature),
1403 &nid->block->signature, nid->type_offset))
1405 _dbus_warn ("Expected signature '%s' and got '%s' with initial offset %d\n",
1406 _dbus_string_get_const_data (nid->signature),
1407 _dbus_string_get_const_data_len (&nid->block->signature, nid->type_offset, 0),
1409 _dbus_assert_not_reached ("wrong signature");
1448 /* FIXME type-iterate both signature and value and compare the resulting
1464 const DBusString *signature,
1474 nid.signature = signature;
1501 DBusString signature;
1503 if (!_dbus_string_init (&signature))
1509 if (! node_build_signature (nodes[i], &signature))
1515 _dbus_verbose (">>> test nodes with signature '%s'\n",
1516 _dbus_string_get_const_data (&signature));
1521 run_test_nodes_in_one_configuration (nodes, n_nodes, &signature,
1523 run_test_nodes_in_one_configuration (nodes, n_nodes, &signature,
1545 _dbus_string_free (&signature);
1599 DBusString *signature,
1610 if (! node_build_signature (nodes[i], signature))
1622 /* DBusTypeWriter assumes it's writing into an existing signature,
1625 if (!_dbus_string_insert_byte (&block.signature,
1649 DBusString *signature,
1663 build_body (nodes, n_nodes, byte_order, signature, body);
1740 * - signature
2843 _dbus_warn ("read signature value '%s' expected '%s'\n",