Buffer.fromList constructor

Buffer.fromList(
  1. List<int> list
)

Creates a Buffer with the given list as backing storage

Implementation

Buffer.fromList(List<int> list)
    : _list = Uint8List(list.length),
      log = Logger('Buffer') {
  _list.setRange(0, list.length, list);
  _data = ByteData.view(_list.buffer);
}