Function spl_token_2022::extension::confidential_transfer::instruction::transfer::split_u64
source ยท pub fn split_u64(amount: u64, bit_length: usize) -> (u64, u64)
๐Deprecated since 1.18.0: please use
try_split_u64
insteadExpand description
Takes in a 64-bit number amount
and a bit length bit_length
. It returns:
- the
bit_length
low bits ofamount
interpreted as u64 - the (64 -
bit_length
) high bits ofamount
interpreted as u64