Skip to main content

encode_call_optimized

Function encode_call_optimized 

Source
pub fn encode_call_optimized<T, R>(
    route_idx: u8,
    value: &T::Params,
    f: impl FnOnce(&[u8]) -> R,
) -> R
Expand description

v2-specific: encode a call using a stack buffer (zero-copy, requires gcore). Used in wasm32 on-chain dispatch code via the io_struct_impl! inherent methods.