fn round_len(len: usize, block_size: usize) -> usize {
    let remainder = len % block_size;
    if remainder == 0 {
        len
    } else {
        len + block_size - remainder
    }
}
/// Rounds the given len so that it contains blocks
/// of the same size.
Rounds the given len so that it contains blocks
of the same size.
Rounds the given len so that it contains blocks of the same size .
fn round_len(len: usize, block_size: usize) -> usize {
    let remainder = len % block_size;
    if remainder == 0 {
        len
    } else {
        len + block_size - remainder
    }
}
fn round_len ( len : usize , block_size : usize ) -> usize { let remainder = len % block_size ; if remainder == 0 { len } else { len + block_size - remainder } }
Rounds the given len so that it contains blocks
of the same size.
Rounds the given len so that it contains blocks of the same size .
len
usize
block_size
usize
len
usize
block_size
usize