Function revm::precompile::utilities::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.