Skip to main content

pad_n_bytes

Function pad_n_bytes 

Source
pub fn pad_n_bytes(hex: &str, num_bytes: usize) -> String
Expand description

Pad a hex string with n 0 bytes to the left. Will not pad a hex string that has a length greater than or equal to num_bytes * 2