Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

JCI_NewArray

This function generates an array object for non-object elements which is initialized with binary zeros.
It is equivalent to the JNI functions New<PrimitiveType>Array.


Call

CALL 'JCI_NewArray' USING num arg res

num

Number of elements

arg

Element description

res

Result description


Arguments

num

Data field of the type JCI-size

Number of elements in the array.

arg

A structure of the form MethodArg
Type description of the array elements.
Only the ArgType(1) field is required.
ArgType(1) may not be ARG-OBJECT, ARG-ANUM-STRING, or ARG-NAT-STRING.

r

A structure of the form MethodRes
Return value (new object reference) in ResValObject. In the event of an error, the value JCI-NULL is returned.


Return value (RETURN-CODE)

JCI-RET-OK

The call was successful.

JCI-RET-ENOVM

No Java VM has been started.

JCI-RET-EINDAOB

num is less than 0.

JCI-RET-EARGVERS

The statically generated version number in elem is invalid (possibly overwritten).

JCI-RET-ERESVERS

The statically generated version number in res is invalid (possibly overwritten).

JCI-RET-EARGTYPE

The value of the ArgType field is invalid.

JCI-RET-ERR

The array object could not be generated.


Exceptions

The exceptions generated by the function correspond to those of the JNI functions New<PrimitiveType>Array.