readBytes method
read bytes from data.
Notice that this won't copy the bytes to save space You can do that manually if you wish to
Implementation
Uint8List readBytes(int length) {
return Uint8List.sublistView(
data, _currentPosition, _currentPosition + length);
}