forge::revm::precompile::utilities

Function left_pad

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

Left-pads the given slice with zeroes until LEN.

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