Expand description
Provides host <-> runtime FFI marshalling strategy newtype wrappers for defining runtime interfaces.
Structs§
- Allocate
AndReturn ByCodec - (DEPRECATED) Return
Tinto the runtime using the SCALE codec. - Allocate
AndReturn FatPointer - (DEPRECATED) Return
Tas a blob of bytes into the runtime. - Allocate
AndReturn Pointer - (DEPRECATED) Return
Tas a blob of bytes into the runtime. - PassAs
- Pass
Tthrough the FFI boundary by first converting it toUin the runtime, and then converting it back toTon the host’s side. - Pass
FatPointer AndDecode - Pass a
Tinto 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
Tthrough the FFI boundary by first converting it toUon the host’s side, and then converting it back toTin the runtime.