Language

JniEnvironment.Arrays.GetLongArrayElements Method

Definition

Obtains a native-access buffer for Java long-array elements.

public static long* GetLongArrayElements(Java.Interop.JniObjectReference array, bool* isCopy);
static member GetLongArrayElements : Java.Interop.JniObjectReference * nativeptr<bool> -> nativeptr<int64>

Parameters

array
JniObjectReference

A valid Java long-array reference, kept valid until final release.

isCopy
Boolean*

An optional pointer that receives true for a copied buffer and false for direct access.

Returns

A long pointer, or null if JNI fails. Pair a successful acquisition with ReleaseLongArrayElements.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to