Function emerald_rs::to_bytes [] [src]

pub fn to_bytes(x: u64, len: u8) -> Vec<u8>

Converts unsigned value to byte array

Arguments

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