Expand description
Utility function that precompiles use, padding and converting between types.
Functionsยง
- bool_
to_ b256  - Converts a boolean to a left-padded [
B256] value. - bool_
to_ bytes32  - Converts a boolean to a left-padded 32-byte [
Bytes] value. - left_
pad  - Left-pads the given slice with zeroes until 
LEN. - left_
pad_ vec  - Left-pads the given slice with zeroes until 
len. - right_
pad  - Right-pads the given slice with zeroes until 
LEN. - right_
pad_ vec  - Right-pads the given slice with zeroes until 
len. - right_
pad_ with_ offset  - Right-pads the given slice at 
offsetwith zeroes untilLEN. - right_
pad_ with_ offset_ vec  - Right-pads the given slice at 
offsetwith zeroes untillen.