cast::revm::precompile::utilities

Function right_pad_with_offset_vec

pub fn right_pad_with_offset_vec(
    data: &[u8],
    offset: usize,
    len: usize,
) -> Cow<'_, [u8]>
Expand description

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

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