reth_revm::precompile::utilities

Function right_pad

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

Right-pads the given slice with zeroes until LEN.

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