code: public static void setInt(MemorySegment[] segments, int offset, int value) {
  		if (inFirstSegment(segments, offset, 4)) {
  			segments[0].putInt(offset, value);
  		} else {
  			setIntMultiSegments(segments, offset, value);
  		}
  	}
docs: set int from segments.
  
  @param segments target segments.
  @param offset value offset.