code: public static void setShort(MemorySegment[] segments, int offset, short value) {
  		if (inFirstSegment(segments, offset, 2)) {
  			segments[0].putShort(offset, value);
  		} else {
  			setShortMultiSegments(segments, offset, value);
  		}
  	}
docs: set short from segments.
  
  @param segments target segments.
  @param offset value offset.