encodePacked static method
Non-standard tight packing (abi.encodePacked).
Static types use native width (no padding), dynamic types have no length
prefix, arrays are packed element-by-element.
Implementation
static Uint8List encodePacked(List<SolType> types, List<dynamic> values) {
if (types.length != values.length) {
throw ArgumentError(
'types.length (${types.length}) != values.length (${values.length})');
}
final parts = <Uint8List>[];
for (var i = 0; i < types.length; i++) {
parts.add(_packSingle(types[i], values[i]));
}
return concatBytes(parts);
}