Function piecrust_uplink::wrap_call

source ยท
pub fn wrap_call<A, R, F>(arg_len: u32, f: F) -> u32
where A: Archive, A::Archived: Deserialize<A, Infallible> + for<'b> CheckBytes<DefaultValidator<'b>>, R: for<'a> Serialize<StandardBufSerializer<'a>>, F: Fn(A) -> R,
Available on crate feature abi only.
Expand description

Wrap a call with its respective (de)serializers. Checks integrity of the arguments.

Returns the length of result written to the buffer.