Construct a string that can be used “on the wire” to identify a
given function between the guest/host. This should be replaced
with an integer index so that we can dispatch less dynamically in
the future.
Emit code to marshal a parameter with value type pt from a
Rust value named by id. The resultant token stream will be an
expression which typechecks as Vec<u8>.
Emit code to marshal the result of a function with result type
rt from a Rust value named by id. The resultant token stream
will be an expression that which typechecks as Vec<u8>.
Emit code to unmarshal a parameter with value type pt from a
slice named by id. The resultant token stream will be an
expression which typechecks at the Rust type (as defined by the
crate::rtypes module) of the given value type.
Emit code to unmarshal the result of a function with result type
rt from a slice named by id. The resultant token stream
will be an expression which typechecks at the Rust type (as
defined by the crate::rtypes module) of the unnamed type of
the result, or unit if named results are used.