Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

to_byte_array

Converts a value to a byte array with a given base and padding.

Requirements:

  • base cannot be zero.

Fully qualified path: openzeppelin_utils::bytearray::to_byte_array

pub fn to_byte_array<T, +Into<T, felt252>, +Copy<T>>(value: @T, base: u8, padding: u16) -> ByteArray