getElements

Returns the body of the primitive array and a boolean value isCopy which specifies whether the array is a copy (true - a copy, `false - the real array body, which means that any changes to it will be reflected on the jvm array).

The result is valid until the releaseElements function is called. Since the returned array may be a copy of the Java array, changes made to the returned array will not necessarily be reflected in the original array until releaseElements is called.

Regardless of how boolean arrays are represented in the Java VM, getElements always returns a pointer to UBytes, with each byte denoting an element (the unpacked representation). All arrays of other types are guaranteed to be contiguous in memory.


Returns the body of the primitive array and a boolean value isCopy which specifies whether the array is a copy (true - a copy, `false - the real array body, which means that any changes to it will be reflected on the jvm array).

The result is valid until the corresponding releaseElements function is called. Since the returned array may be a copy of the Java array, changes made to the returned array will not necessarily be reflected in the original array until releaseElements is called.