revm_precompile::utilities

Function right_pad_with_offset

Source
pub fn right_pad_with_offset<const LEN: usize>(
    data: &[u8],
    offset: usize,
) -> Cow<'_, [u8; LEN]>
Expand description

Right-pads the given slice at offset with zeroes until LEN.

Returns the first LEN bytes if it does not need padding.