aggregateBytes static method

Uint8List aggregateBytes(
  1. List<ClientMessage> messages
)

Implementation

static Uint8List aggregateBytes(List<ClientMessage> messages) {
  final buffer = ByteDataWriter();
  for (final cm in messages) {
    cm.applyToBuffer(buffer);
  }
  return buffer.toBytes();
}