Expand description
Provides host <-> runtime FFI marshalling strategy newtype wrappers for defining runtime interfaces.
Structs§
- (DEPRECATED) Return
T
into the runtime using the SCALE codec. - (DEPRECATED) Return
T
as a blob of bytes into the runtime. - (DEPRECATED) Return
T
as a blob of bytes into the runtime. - Pass
T
through the FFI boundary by first converting it toU
in the runtime, and then converting it back toT
on the host’s side. - Pass a
T
into the host using the SCALE codec. - Pass a
&[T]
into the host using the SCALE codec. - Pass a value into the host by a fat pointer.
- Pass a value into the host by a fat pointer, writing it back after the host call ends.
- Pass a value into the host by a thin pointer.
- Pass a value into the host by a thin pointer.
- Pass a pointer into the host and write to it after the host call ends.
- Return
T
through the FFI boundary by first converting it toU
on the host’s side, and then converting it back toT
in the runtime.