pub fn encode_sequence_to<T: for<'a> SolParamsEncode<'a>>(
value: &T,
buffer: &mut [u8],
) -> usizeExpand description
Solidity ABI encode the given value into the given buffer as a parameter sequence, and returns the number of bytes written.
ยงNote
Tmust be a tuple type where each member implementsSolEncode.- The result can be different from
SolEncode::encode_tofor the given tuple because this function always returns the encoded data in place, even for tuples containing dynamic types (i.e. no top-level offset is included for dynamic tuples).
This function is a convenience wrapper for SolParamsEncode::encode_to.