readRawReader method
Returns a new RawReader that is backed by a span of this RawReader.
Implementation
RawReader readRawReader(int length) {
final byteData = _byteData;
final index = this.index;
final result = RawReader.withByteData(
ByteData.view(
byteData.buffer,
byteData.offsetInBytes + index,
length,
),
);
this.index = index + length;
return result;
}