Function sp_runtime_interface::unpack_ptr_and_len
source · pub fn unpack_ptr_and_len(val: u64) -> (u32, u32)
Expand description
Unpacks an u64
into the pointer and length.
Runtime API functions return a 64-bit value which encodes a pointer in the least-significant 32-bits and a length in the most-significant 32 bits. This interprets the returned value as a pointer, length tuple.