code: public static void setChar(MemorySegment[] segments, int offset, char value) {
  		if (inFirstSegment(segments, offset, 2)) {
  			segments[0].putChar(offset, value);
  		} else {
  			setCharMultiSegments(segments, offset, value);
  		}
  	}
docs: set char from segments.
  
  @param segments target segments.
  @param offset value offset.