List<int> toBuffer(List<List<int>> bufs) { return List<int>.from(bufs.expand((element) => element).toList()); }