[][src]Function solana_rbpf::helpers::gather_bytes

pub fn gather_bytes(
    arg1: u64,
    arg2: u64,
    arg3: u64,
    arg4: u64,
    arg5: u64
) -> u64

The idea is to assemble five bytes into a single u64. For compatibility with the helpers API, each argument must be a u64.

Examples

use solana_rbpf::helpers;

let gathered = helpers::gather_bytes(0x11, 0x22, 0x33, 0x44, 0x55);
assert_eq!(gathered, 0x1122334455);