readDouble method
Reads and returns an 8-byte double, using the current endian setting.
Throws EOFException if EOF is reached before the needed bytes are read.
Implementation
double readDouble() {
if (seek + 8 > _source.lengthInBytes) {
throw EOFException('Attempt to read beyond end of input');
} else {
final result = _asByteData.getFloat64(seek, endian);
seek += 8;
return result;
}
}