readDoubleList method
Read a list of doubles with length.
If length is not provided, it is read first.
Implementation
@override
List<double> readDoubleList([int? length]) {
length ??= readUint32();
_requireBytes(length * 8);
final byteData = _byteData;
final list = List<double>.filled(length, 0, growable: true);
for (var i = 0; i < length; i++) {
list[i] = byteData.getFloat64(_offset, Endian.little);
_offset += 8;
}
return list;
}