getByteData method
Returns a ByteData view of the raw bytes starting at offset for length bytes.
Implementation
@override
ByteData getByteData(int offset, int length) {
file.setPositionSync(offset);
final bytes = file.readSync(length);
if (bytes.length < length) {
throw const FormatException("Header ended prematurely");
}
return ByteData.sublistView(bytes);
}