isoBoxesToBytes function

Future<Uint8List> isoBoxesToBytes(
  1. List<ISOBox> boxes
)

Write a list of boxes to bytes.

Implementation

Future<Uint8List> isoBoxesToBytes(List<ISOBox> boxes) async {
  final bb = BytesBuilder();
  for (final box in boxes) {
    bb.add(await box.toBytes());
  }
  return bb.toBytes();
}