Function emerald_vault::util::to_bytes

source ·
pub fn to_bytes(x: u64, len: u8) -> Vec<u8> 
Expand description

Converts unsigned value to byte array

Arguments

  • x - a value to be converted into byte vector
  • len - size of value