Skip to main content

alignment

Function alignment 

Source
pub fn alignment(code: u8) -> usize
Expand description

The natural alignment of a type code, in bytes.

Padding between values is what makes D-Bus marshalling fiddly: every value starts at a multiple of its alignment, counted from the start of the message, not from the start of the body.