JNIEnv.CopyObjectArray Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CopyObjectArray<T>(T[], IntPtr) |
Copies and converts managed elements into a Java object array up to the shorter array length. |
| CopyObjectArray<T>(IntPtr, T[]) |
Copies and converts Java object array elements up to the shorter array length. |
CopyObjectArray<T>(T[], IntPtr)
Copies and converts managed elements into a Java object array up to the shorter array length.
public static void CopyObjectArray<T>(T[]? source, IntPtr destination);
static member CopyObjectArray : 'T[] * nativeint -> unit
Type Parameters
- T
The managed element type to convert.
Parameters
- source
- T[]
The managed array to copy, or null. Null causes the method to return without copying.
- destination
-
IntPtr
nativeint
A live JNI reference to a Java object array that can contain the converted values, usable on the calling thread, or Zero when source is null.
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
CopyObjectArray<T>(IntPtr, T[])
Copies and converts Java object array elements up to the shorter array length.
public static void CopyObjectArray<T>(IntPtr source, T[] destination);
static member CopyObjectArray : nativeint * 'T[] -> unit
Type Parameters
- T
The managed element type to produce.
Parameters
- source
-
IntPtr
nativeint
A live JNI reference to a Java object array, usable on the calling thread, or Zero. Zero causes the method to return without copying.
- destination
- T[]
The managed array that receives converted elements. It must not be null when source is nonzero.
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.