code: static public double bytesToDouble(byte[] buffer, int index) {
          double real;
          long bits = bytesToLong(buffer, index);
          real = Double.longBitsToDouble(bits);
          return real;
      }
docs: This function converts the bytes in a byte array at the specified index to its
  corresponding double value.
  
  @param buffer The byte array containing the double.
  @param index The index for the first byte in the byte array.
  @return The corresponding double value.