Lines Matching defs:alignment
181 /* struct and dict entry have 8 byte alignment */
230 int alignment;
241 alignment = element_type_get_alignment (sub->type_str,
244 sub->value_pos = _DBUS_ALIGN_VALUE (sub->value_pos, alignment);
918 int alignment;
930 alignment = _dbus_type_get_alignment (element_type);
953 *n_elements = remaining_len / alignment;
954 _dbus_assert ((remaining_len % alignment) == 0);
1122 DBusString replacement; /**< Marshaled value including alignment padding */
1231 /* In the variable-length case, we have to fix alignment after we insert.
1234 * - pad a new string to have the same alignment as the
1238 * which will fix the alignment of types following
1246 * padding and alignment will be identical
1339 * are at the same alignment. Frequently this should result in only
1771 /* Ensure that we'll be able to add alignment padding and the typecode */
1787 _dbus_assert_not_reached ("should not have failed to insert alignment padding for struct");
1804 int alignment;
1892 /* Write alignment padding for array elements
1896 alignment = element_type_get_alignment (contained_type, contained_type_start);
1898 aligned = _DBUS_ALIGN_VALUE (sub->value_pos, alignment);
1907 _dbus_assert_not_reached ("should not have failed to insert alignment padding");
1953 * padding to alignment of contained type
1961 * 0x1 'i' '\0' [1 byte padding to alignment boundary] 0x0 0x0 0x0 0x3
1966 * that inserting to the type string could break type alignment.
2033 _dbus_assert_not_reached ("should not have failed to insert alignment padding for variant body");