Skip to main content

pack_ptr_len

Function pack_ptr_len 

Source
pub fn pack_ptr_len(ptr: u32, len: u32) -> i64
Expand description

Pack a (ptr, len) pair into a single i64 for the ABI v2 return convention.

Layout: bits 0-31 = ptr, bits 32-63 = len.