Language

JniEnvironment.Arrays.GetDoubleArrayElements Method

Definition

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

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

Parameters

array
JniObjectReference

A valid Java double-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 double pointer, or null if JNI fails. Pair a successful acquisition with ReleaseDoubleArrayElements.

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