Skip to main content

padding_for

Function padding_for 

Source
pub fn padding_for(pos: usize, alignment: usize) -> usize
Expand description

Computes the number of padding bytes to push pos to the next multiple-of-alignment boundary.