Skip to main content

align_up

Function align_up 

Source
pub const fn align_up<const ALIGN: usize>(offset: usize) -> usize
Expand description

Rounds up the given offset to the nearest multiple of ALIGN. ALIGN must be a power of two.