This method of the SafeArray Class sets multiple elements. If the SafeArray is multidimensional, it is treated as if it were a single linear array stored in column order. No matter where in the SafeArray the first element is located, that location is called index zero for the purposes of this method. The first element to be set in the SafeArray is located sa_idx elements away from index zero.
public void setChars(int sa_idx, int nelems, char ja[], int ja_start);
Note This method attempts all the usual type conversions. To achieve optimal performance, ensure that the element size of the source and destination arrays match exactly, so that the method optimizes to a straight memory copy (memcpy).
sa_idx | The index of the first element to set. This index is always zero-based. |
nelems | The number of elements to set. |
ja | The Java array that contains the new values. |
ja_start | The index of the first element in ja that is used. |