getFloat64 static method

double getFloat64(
  1. List<int> buf,
  2. Endian byteOrder, {
  3. dynamic position = 0,
})

Implementation

static double getFloat64(List<int> buf, Endian byteOrder, {position = 0}) {
  if (byteOrder == Endian.little) {
    _unisgnedByteBuffer[0] = buf[position + 7];
    _unisgnedByteBuffer[1] = buf[position + 6];
    _unisgnedByteBuffer[2] = buf[position + 5];
    _unisgnedByteBuffer[3] = buf[position + 4];
    _unisgnedByteBuffer[4] = buf[position + 3];
    _unisgnedByteBuffer[5] = buf[position + 2];
    _unisgnedByteBuffer[6] = buf[position + 1];
    _unisgnedByteBuffer[7] = buf[position + 0];
    return _signedFloat64Buffer[0];
  } else {
    _unisgnedByteBuffer[0] = buf[position + 0];
    _unisgnedByteBuffer[1] = buf[position + 1];
    _unisgnedByteBuffer[2] = buf[position + 2];
    _unisgnedByteBuffer[3] = buf[position + 3];
    _unisgnedByteBuffer[4] = buf[position + 4];
    _unisgnedByteBuffer[5] = buf[position + 5];
    _unisgnedByteBuffer[6] = buf[position + 6];
    _unisgnedByteBuffer[7] = buf[position + 7];
    return _signedFloat64Buffer[0];
  }
}