Microsoft SDK for Java

fromBooleanArray

This method of the SafeArray Class initializes SafeArray elements from a Java array. If the SafeArray is multidimensional, it is treated as if it were a single linear array stored in column order. No matter what the index of the lower bound of the SafeArray is, the first element is initialized from element zero of the Java array.

If the Java array is shorter than the number of SafeArray elements, the remaining SafeArray elements are left unmodified. If the Java array is longer than the number of SafeArray elements, the extra elements are ignored.

Syntax

public void fromBooleanArray(boolean ja[]);

Note   If you are modifying a large number of elements, it might be more efficient to use fromCharArray rather than fromBooleanArray. Since boolean SafeArrays use two bytes per element, the fromBooleanArray method cannot optimize itself to a memory copy (memcpy).

Parameters

ja The Java array that contains the new values.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.