encode method
- List<
T> values
override
Implementation
Uint8List encode(List<T> values) {
final length = values.length;
final length_header = FunctionParamInt().encode(length.toBigInt);
final encoded_values = values.map((value) => itemType.encode(value));
return Uint8List.fromList(
[...length_header, for (var value in encoded_values) ...value],
);
}