pub fn padding_to_4(len: usize) -> usize
Compute the amount of padding needed to reach a 4-byte boundary.