reth_revm::precompile::utilities

Function left_pad_vec

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

Left-pads the given slice with zeroes until len.

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