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);
76 #ifdef DBUS_HAVE_INT64
91 p = _DBUS_ALIGN_ADDRESS (p, 4);
108 p = _DBUS_ALIGN_ADDRESS (p, alignment);
119 const unsigned char *array_end;
121 array_end = p + array_len;
125 while (p < array_end)
127 byteswap_body_helper (&sub,
140 p += (array_len + 1);
163 int contained_alignment;
174 p = _DBUS_ALIGN_ADDRESS (p, contained_alignment);
178 byteswap_body_helper (&sub,
FALSE, old_byte_order, new_byte_order, p, &p);
187 p = _DBUS_ALIGN_ADDRESS (p, 8);
191 byteswap_body_helper (&sub,
TRUE, old_byte_order, new_byte_order, p, &p);
205 if (walk_reader_to_end)
238 if (old_byte_order == new_byte_order)
242 signature, signature_start);
244 byteswap_body_helper (&reader,
TRUE,
245 old_byte_order, new_byte_order,