code: public final void copyTo(int offset, MemorySegment target, int targetOffset, int numBytes) {
  		// system arraycopy does the boundary checks anyways, no need to check extra
  		System.arraycopy(this.memory, offset, target.memory, targetOffset, numBytes);
  	}
docs: Bulk copy method. Copies {@code numBytes} bytes from this memory segment, starting at position
  {@code offset} to the target memory segment. The bytes will be put into the target segment
  starting at position {@code targetOffset}.
  
  @param offset The position where the bytes are started to be read from in this memory segment.
  @param target The memory segment to copy the bytes to.
  @param targetOffset The position in the target memory segment to copy the chunk to.
  @param numBytes The number of bytes to copy.
  
  @throws IndexOutOfBoundsException If either of the offsets is invalid, or the source segment does not
  contain the given number of bytes (starting from offset), or the target segment does
  not have enough space for the bytes (counting from targetOffset).