Function hdk::prelude::return_ptr[][src]

pub fn return_ptr<R>(return_value: R) -> u32 where
    R: Serialize + Debug

Convert any serializable value into a GuestPtr that can be returned to the host. The host is expected to know how to consume and deserialize it.