Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

u128_join

Join two u128 into one

Arguments

  • left - the left part of u128
  • right - the right part of u128
  • right_size - the size of right part in bytes

Returns

  • value - the joined u128

Examples

u128_join(0x010203, 0xaabb, 2) -> 0x010203aabb
u128_join(0x010203, 0, 2) -> 0x0102030000

Fully qualified path: alexandria_bytes::utils::u128_join

pub fn u128_join(left: u128, right: u128, right_size: u32) -> u128