code: public static void copyToUnsafe(
  			MemorySegment[] segments,
  			int offset,
  			Object target,
  			int pointer,
  			int numBytes) {
  		if (inFirstSegment(segments, offset, numBytes)) {
  			segments[0].copyToUnsafe(offset, target, pointer, numBytes);
  		} else {
  			copyMultiSegmentsToUnsafe(segments, offset, target, pointer, numBytes);
  		}
  	}
docs: Copy segments to target unsafe pointer.
  
  @param segments Source segments.
  @param offset   The position where the bytes are started to be read from these memory
  segments.
  @param target   The unsafe memory to copy the bytes to.
  @param pointer  The position in the target unsafe memory to copy the chunk to.
  @param numBytes the number bytes to copy.