Skip to main content

arg_ref

Function arg_ref 

Source
pub unsafe fn arg_ref<'a>(ty: PortType, slots: &'a [u64]) -> ValueRef<'a>
Expand description

An argument’s slots as a borrowed view of the value, decoded by its port type: nothing is copied. A string, byte string, or value is borrowed through its pair, valid while its producer’s storage is.

§Safety

As for decode_pair.