Skip to main content

aligned_size

Function aligned_size 

Source
pub fn aligned_size(size: usize, alignment: usize) -> usize
Expand description

Compute the padded buffer size to meet alignment requirements.

Returns the smallest multiple of alignment that is >= size.