readFloat64 method

double readFloat64(
  1. [Endian endian = Endian.big]
)

Reads a 64-bit floating-point value. Increments index by 8.

Implementation

double readFloat64([Endian endian = Endian.big]) {
  final byteData = this._byteData;
  final index = this.index;
  final newIndex = index + 8;
  if (newIndex > byteData.lengthInBytes) {
    throw _eofException(index, "float64");
  }
  final value = _byteData.getFloat64(index, endian);
  this.index = index + 8;
  return value;
}