25 #include "dbus-marshal-byteswap.h"
26 #include "dbus-marshal-basic.h"
27 #include "dbus-signature.h"
40 unsigned char **new_p)
55 p = _DBUS_ALIGN_ADDRESS (p, 2);
65 p = _DBUS_ALIGN_ADDRESS (p, 4);
75 p = _DBUS_ALIGN_ADDRESS (p, 8);
87 p = _DBUS_ALIGN_ADDRESS (p, 4);
104 p = _DBUS_ALIGN_ADDRESS (p, alignment);
115 const unsigned char *array_end;
117 array_end = p + array_len;
121 while (p < array_end)
123 byteswap_body_helper (&sub,
136 p += (array_len + 1);
159 int contained_alignment;
170 p = _DBUS_ALIGN_ADDRESS (p, contained_alignment);
174 byteswap_body_helper (&sub,
FALSE, old_byte_order, new_byte_order, p, &p);
183 p = _DBUS_ALIGN_ADDRESS (p, 8);
187 byteswap_body_helper (&sub,
TRUE, old_byte_order, new_byte_order, p, &p);
201 if (walk_reader_to_end)
234 if (old_byte_order == new_byte_order)
238 signature, signature_start);
240 byteswap_body_helper (&reader,
TRUE,
241 old_byte_order, new_byte_order,
242 _dbus_string_get_udata_len (value_str, value_pos, 0),