Click or drag to resize

IJavaArraySetT(Int32, ArraySegmentT) Method

Sets the elements in values starting from the position startIndex of the Java array.

Namespace: MASES.JCOBridge.C2JBridge.JVMInterop
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntax
void Set<T>(
	int startIndex,
	ArraySegment<T> values
)

Parameters

startIndex  Int32
The zero-based index of the Java array at which the first element is written.
values  ArraySegmentT
The segment to copy into the Java array. Only the Count elements starting at Offset are used.

Type Parameters

T
The element type of values. Supported types are the native primitives (bool, byte, char, short, int, long, float, double), IJavaArray and IJavaObject. The type must match the element type of the Java array.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionstartIndex is negative.
ArgumentNullExceptionvalues is a default segment (no underlying array).
InvalidCastExceptionT is not consistent with the element type of the Java array.
NullReferenceExceptionThe Java array is .
IndexOutOfRangeExceptionThe elements do not fit in the Java array starting from startIndex.
See Also