List<Uint8List> argsToSlice(List<Arg> args) { List<Uint8List> result = new List.filled(args.length, null); args.forEach((element) => {result[element.index] = toBytes(element)}); return result; }