pub fn encode_sequence_to<T: for<'a> SolParamsEncode<'a>>(
value: &T,
buffer: &mut [u8],
) -> usize
Expand description
Solidity ABI encode the given value into the given buffer as a parameter sequence, and returns the number of bytes written.
ยงNote
T
must be a tuple type where each member implementsSolEncode
.- The result can be different from
SolEncode::encode_to
for 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
.