readBytes method
Read num
number of bytes from the buffer and shift cursor by num
.
Implementation
Uint8List readBytes(int num) {
int start = _bytePosition + _dataView.offsetInBytes;
final value = Uint8List.view(_dataView.buffer, start, num);
shift(num);
return value;
}