Skip to main content

align_up

Function align_up 

Source
fn align_up(size: u32, alignment: u32) -> Option<u32>
Expand description

Rounds size up to the next multiple of alignment.

Returns None if the rounded value does not fit in a u32.