Function holochain_wasmer_common::merge_usize

source ·
pub fn merge_usize(a: usize, b: usize) -> Result<DoubleUSize, WasmError>
Expand description

Given 2x u32, return a DoubleUSize merged. Works via a simple bitwise shift to move the pointer to high bits then OR the length into the low bits.