Module pass_by

Source
Expand description

Provides host <-> runtime FFI marshalling strategy newtype wrappers for defining runtime interfaces.

Structs§

AllocateAndReturnByCodec
(DEPRECATED) Return T into the runtime using the SCALE codec.
AllocateAndReturnFatPointer
(DEPRECATED) Return T as a blob of bytes into the runtime.
AllocateAndReturnPointer
(DEPRECATED) Return T as a blob of bytes into the runtime.
PassAs
Pass T through the FFI boundary by first converting it to U in the runtime, and then converting it back to T on the host’s side.
PassFatPointerAndDecode
Pass a T into the host using the SCALE codec.
PassFatPointerAndDecodeSlice
Pass a &[T] into the host using the SCALE codec.
PassFatPointerAndRead
Pass a value into the host by a fat pointer.
PassFatPointerAndReadWrite
Pass a value into the host by a fat pointer, writing it back after the host call ends.
PassPointerAndRead
Pass a value into the host by a thin pointer.
PassPointerAndReadCopy
Pass a value into the host by a thin pointer.
PassPointerAndWrite
Pass a pointer into the host and write to it after the host call ends.
ReturnAs
Return T through the FFI boundary by first converting it to U on the host’s side, and then converting it back to T in the runtime.