solana_zk_token_sdk::instruction::transfer

Function try_combine_lo_hi_u64

Source
pub fn try_combine_lo_hi_u64(
    amount_lo: u64,
    amount_hi: u64,
    bit_length: usize,
) -> Result<u64, InstructionError>
Expand description

Combine two numbers that are interpretted as the low and high bits of a target number. The bit_length parameter specifies the number of bits that amount_hi is to be shifted by.