code: public static int putDouble(byte [] bytes, int offset, double d) {
      return putLong(bytes, offset, Double.doubleToLongBits(d));
    }
docs: Put a double value out to the specified byte array position.
  @param bytes byte array
  @param offset offset to write to
  @param d value
  @return New offset into array <code>bytes</code>