readBuffer method

Uint8List readBuffer(
  1. int length
)

Reads a Uint8List from the backing buffer

  • length: The size

Implementation

Uint8List readBuffer(int length) {
  final res =
      Uint8List.view(_list.buffer, _list.offsetInBytes + _offset, length);
  _offset += length;
  return copyBinaryData ? Uint8List.fromList(res) : res;
}