This method of the SafeArray Class sets multiple elements of a SafeArray.
public void setBooleans(int sa_idx, int nelems, boolean ja[], int ja_start);
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.
Note If you are modifying a large number of elements, it might be more efficient to use setChars rather than setBooleans. Since boolean SafeArrays use two bytes per element, the setBooleans method cannot optimize itself to a 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 first element in ja to use. |