Expand description
Provides host <-> runtime FFI marshalling strategy newtype wrappers for defining runtime interfaces.
Structs§
- Allocate
AndReturn ByCodec - (DEPRECATED) Return
T
into the runtime using the SCALE codec. - Allocate
AndReturn FatPointer - (DEPRECATED) Return
T
as a blob of bytes into the runtime. - Allocate
AndReturn Pointer - (DEPRECATED) Return
T
as a blob of bytes into the runtime. - PassAs
- 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
FatPointer AndDecode - Pass a
T
into the host using the SCALE codec. - Pass
FatPointer AndDecode Slice - Pass a
&[T]
into the host using the SCALE codec. - Pass
FatPointer AndRead - Pass a value into the host by a fat pointer.
- Pass
FatPointer AndRead Write - Pass a value into the host by a fat pointer, writing it back after the host call ends.
- Pass
Pointer AndRead - Pass a value into the host by a thin pointer.
- Pass
Pointer AndRead Copy - Pass a value into the host by a thin pointer.
- Pass
Pointer AndWrite - Pass a pointer into the host and write to it after the host call ends.
- Return
As - 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.