setFloat64 method

void setFloat64(
  1. double value,
  2. int offset, [
  3. Endian endian = Endian.little
])

Writes a double precision floating point value to 8-bytes.

The offset must satisy the relations 0offsetoffset+8this.length.

final Buffer buffer = Buffer(8);
buffer.setFloat64(3.14159265359, 0);
print(buffer); // [234, 46, 68, 84, 251, 33, 9, 64]

Implementation

void setFloat64(final double value, final int offset,
    [final Endian endian = Endian.little]) {
  return asByteData().setFloat64(offset, value, endian);
}