pub fn right_pad_vec(data: &[u8], len: usize) -> Cow<'_, [u8]>
Right-pads the given slice with zeroes until len.
len
Returns the first len bytes if it does not need padding.