Lines Matching refs:str
251 set_2_octets (DBusString *str,
261 data = _dbus_string_get_data_len (str, offset, 2);
267 set_4_octets (DBusString *str,
277 data = _dbus_string_get_data_len (str, offset, 4);
283 set_8_octets (DBusString *str,
293 data = _dbus_string_get_data_len (str, offset, 8);
302 * @param str the string to write the marshalled int to
309 _dbus_marshal_set_uint32 (DBusString *str,
314 set_4_octets (str, pos, value, byte_order);
327 * @param str the string to write the marshalled string to
337 set_string (DBusString *str,
351 _dbus_string_get_const_data_len (str, pos, 4));
356 str, pos + 4, old_len))
359 _dbus_marshal_set_uint32 (str, pos, new_len, byte_order);
373 * @param str the string to write the marshalled signature to
383 set_signature (DBusString *str,
395 old_len = _dbus_string_get_byte (str, pos);
399 str, pos + 1, old_len))
402 _dbus_string_set_byte (str, pos, new_len);
416 * @param str the string
426 _dbus_marshal_set_basic (DBusString *str,
441 _dbus_string_set_byte (str, pos, vp->byt);
451 set_2_octets (str, pos, vp->u16, byte_order);
463 set_4_octets (str, pos, vp->u32, byte_order);
474 set_8_octets (str, pos, *vp, byte_order);
484 _dbus_assert (vp->str != NULL);
485 return set_string (str, pos, vp->str, byte_order,
489 _dbus_assert (vp->str != NULL);
490 return set_signature (str, pos, vp->str, byte_order,
503 * @param str the string containing the data
510 _dbus_marshal_read_uint32 (const DBusString *str,
520 _dbus_assert (pos + 4 <= _dbus_string_get_length (str));
523 _dbus_string_get_const_data (str) + pos);
540 * @param str the string containing the data
548 _dbus_marshal_read_basic (const DBusString *str,
559 str_data = _dbus_string_get_const_data (str);
570 *vp = (unsigned char) _dbus_string_get_byte (str, pos);
622 len = _dbus_marshal_read_uint32 (str, pos, byte_order, &pos);
634 len = _dbus_string_get_byte (str, pos);
654 marshal_2_octets (DBusString *str,
668 orig_len = _dbus_string_get_length (str);
670 retval = _dbus_string_insert_2_aligned (str, insert_at,
675 *pos_after = insert_at + (_dbus_string_get_length (str) - orig_len);
676 _dbus_assert (*pos_after <= _dbus_string_get_length (str));
683 marshal_4_octets (DBusString *str,
697 orig_len = _dbus_string_get_length (str);
699 retval = _dbus_string_insert_4_aligned (str, insert_at,
704 *pos_after = insert_at + (_dbus_string_get_length (str) - orig_len);
705 _dbus_assert (*pos_after <= _dbus_string_get_length (str));
712 marshal_8_octets (DBusString *str,
725 orig_len = _dbus_string_get_length (str);
727 retval = _dbus_string_insert_8_aligned (str, insert_at,
731 *pos_after = insert_at + _dbus_string_get_length (str) - orig_len;
745 DBusString *str,
757 if (insert_at > _dbus_string_get_length (str))
759 insert_at, _dbus_string_get_length (str), data_len);
775 if (!_dbus_string_insert_byte (str, pos, data_len))
782 if (!marshal_4_octets (str, pos, data_len,
788 str, pos))
794 str, pos));
795 _dbus_verbose_bytes_of_string (str, pos, value_len);
807 _dbus_string_delete (str, insert_at, pos - insert_at);
813 marshal_string (DBusString *str,
820 str, insert_at, value,
826 marshal_signature (DBusString *str,
832 str, insert_at, value,
846 * @param str string to marshal to
855 _dbus_marshal_write_basic (DBusString *str,
871 if (!_dbus_string_insert_byte (str, insert_at, vp->byt))
879 return marshal_2_octets (str, insert_at, vp->u16,
883 return marshal_4_octets (str, insert_at, vp->u32 != FALSE,
889 return marshal_4_octets (str, insert_at, vp->u32,
895 return marshal_8_octets (str, insert_at, *vp, byte_order, pos_after);
900 _dbus_assert (vp->str != NULL);
901 return marshal_string (str, insert_at, vp->str, byte_order, pos_after);
904 _dbus_assert (vp->str != NULL);
905 return marshal_signature (str, insert_at, vp->str, pos_after);
915 marshal_1_octets_array (DBusString *str,
930 str, pos))
997 swap_array (DBusString *str,
1010 _dbus_swap_array ((unsigned char*) (_dbus_string_get_const_data (str) + array_start),
1016 marshal_fixed_multi (DBusString *str,
1031 old_string_len = _dbus_string_get_length (str);
1042 if (!_dbus_string_insert_alignment (str, &array_start, alignment))
1050 str, array_start))
1053 swap_array (str, array_start, n_elements, byte_order, alignment);
1061 _dbus_string_delete (str, insert_at,
1062 _dbus_string_get_length (str) - old_string_len);
1075 * @param str string to marshal to
1085 _dbus_marshal_write_fixed_multi (DBusString *str,
1106 return marshal_1_octets_array (str, insert_at, vp, n_elements, byte_order, pos_after);
1110 return marshal_fixed_multi (str, insert_at, vp, n_elements, byte_order, 2, pos_after);
1115 return marshal_fixed_multi (str, insert_at, vp, n_elements, byte_order, 4, pos_after);
1120 return marshal_fixed_multi (str, insert_at, vp, n_elements, byte_order, 8, pos_after);
1135 * @param str the string containing the data
1142 _dbus_marshal_skip_basic (const DBusString *str,
1178 len = _dbus_marshal_read_uint32 (str, *pos, byte_order, pos);
1187 len = _dbus_string_get_byte (str, *pos);
1203 * @param str the string containing the data
1210 _dbus_marshal_skip_array (const DBusString *str,
1221 array_len = _dbus_marshal_read_uint32 (str, i, byte_order, &i);
1420 * @param str the string
1425 _dbus_verbose_bytes_of_string (const DBusString *str,
1432 real_len = _dbus_string_get_length (str);
1450 d = _dbus_string_get_const_data_len (str, start, len);
1476 * @param str string containing signature
1481 _dbus_first_type_in_signature (const DBusString *str,
1484 return map_type_char_to_type (_dbus_string_get_byte (str, pos));
1491 * @param str a C string buffer
1496 _dbus_first_type_in_signature_c_str (const char *str,
1499 return map_type_char_to_type (str[pos]);
1518 * @param str the string to read from
1527 _dbus_marshal_read_fixed_multi (const DBusString *str,
1552 *(const DBusBasicValue**) value = (void*) _dbus_string_get_const_data_len (str, pos, array_len);
1575 if (!_dbus_marshal_write_basic (&str, pos, DBUS_TYPE_##typename, \
1583 _dbus_marshal_read_basic (&str, pos, DBUS_TYPE_##typename, &v_##typename, \
1592 _dbus_verbose_bytes_of_string (&str, dump_pos, \
1593 _dbus_string_get_length (&str) - dump_pos); \
1612 _dbus_verbose_bytes_of_string (&str, dump_pos, \
1613 _dbus_string_get_length (&str) - dump_pos); \
1623 if (!_dbus_marshal_write_basic (&str, pos, DBUS_TYPE_UINT32, &v_UINT32, \
1627 if (!_dbus_marshal_write_fixed_multi (&str, next, DBUS_TYPE_##typename, \
1637 v_UINT32 = _dbus_marshal_read_uint32 (&str, dump_pos, byte_order, &next); \
1638 _dbus_marshal_read_fixed_multi (&str, next, DBUS_TYPE_##typename, &v_ARRAY_##typename, \
1651 _dbus_verbose_bytes_of_string (&str, dump_pos, \
1652 _dbus_string_get_length (&str) - dump_pos); \
1672 DBusString str;
1704 if (!_dbus_string_init (&str))
1801 _dbus_string_set_length (&str, 8);
1804 _dbus_marshal_set_int64 (&str, DBUS_LITTLE_ENDIAN,
1809 _dbus_string_get_const_data (&str)));
1812 _dbus_marshal_set_int64 (&str, DBUS_BIG_ENDIAN,
1817 _dbus_string_get_const_data (&str)));
1822 _dbus_string_get_data (&str));
1826 _dbus_string_get_const_data (&str)));
1831 _dbus_string_get_data (&str));
1835 _dbus_string_get_const_data (&str)));
1838 _dbus_marshal_set_uint64 (&str, DBUS_LITTLE_ENDIAN,
1843 _dbus_string_get_const_data (&str)));
1846 _dbus_marshal_set_uint64 (&str, DBUS_BIG_ENDIAN,
1851 _dbus_string_get_const_data (&str)));
1856 _dbus_string_get_data (&str));
1860 _dbus_string_get_const_data (&str)));
1865 _dbus_string_get_data (&str));
1869 _dbus_string_get_const_data (&str)));
1873 _dbus_string_set_length (&str, 4);
1876 _dbus_marshal_set_int32 (&str, DBUS_LITTLE_ENDIAN,
1881 _dbus_string_get_const_data (&str)));
1884 _dbus_marshal_set_int32 (&str, DBUS_BIG_ENDIAN,
1889 _dbus_string_get_const_data (&str)));
1894 _dbus_string_get_data (&str));
1898 _dbus_string_get_const_data (&str)));
1903 _dbus_string_get_data (&str));
1907 _dbus_string_get_const_data (&str)));
1910 _dbus_marshal_set_uint32 (&str,
1916 _dbus_string_get_const_data (&str)));
1919 _dbus_marshal_set_uint32 (&str,
1925 _dbus_string_get_const_data (&str)));
1930 _dbus_string_get_data (&str));
1934 _dbus_string_get_const_data (&str)));
1939 _dbus_string_get_data (&str));
1943 _dbus_string_get_const_data (&str)));
1952 _dbus_string_set_length (&str, 0);
1963 _dbus_marshal_set_basic (&str, 0, DBUS_TYPE_STRING,
1966 _dbus_marshal_read_basic (&str, 0, DBUS_TYPE_STRING,
1975 _dbus_marshal_set_basic (&str, 0, DBUS_TYPE_STRING,
1977 _dbus_marshal_read_basic (&str, 0, DBUS_TYPE_STRING,
1990 _dbus_string_free (&str);