readAllFloat64 method

List<double> readAllFloat64(
  1. int length
)

Reads a List of 64-bit double values with a specified length.

Implementation

List<double> readAllFloat64(int length) {
  var bs = readBytes(length * 8);
  var byteData = ByteData.sublistView(bs);
  return List.generate(length, (i) => byteData.getFloat64(i * 8));
}