Function holochain_wasmer_common::split_u64
source · [−]pub fn split_u64(u: GuestPtrLen) -> (GuestPtr, Len)
Expand description
Given a merged GuestPtrLen
, split out a u32
pointer and length.
Performs the inverse of merge_u64
. Takes the low u32
bits as the length
then shifts the 32 high bits down and takes those as the pointer.