code: public static void setDouble(MemorySegment[] segments, int offset, double value) {
  		if (inFirstSegment(segments, offset, 8)) {
  			segments[0].putDouble(offset, value);
  		} else {
  			setDoubleMultiSegments(segments, offset, value);
  		}
  	}
docs: set double from segments.
  
  @param segments target segments.
  @param offset value offset.