Function pad_left

Source
pub fn pad_left(bytes: &[u8]) -> [u8; 32]
Expand description

Pad a u8 with no particular length to 32 bytes to return a [u8; 32] It adds zero padding to the left

§Arguments

  • bytes - The u8 to pad

§Returns

Returns a [u8; 32] with the padded bytes