readBuffer method
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;
}