reth_revm::precompile::utilities

Function right_pad_vec

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

Right-pads the given slice with zeroes until len.

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