JavaPrimitiveArray<T>.CopyTo 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 |
|---|---|
| CopyTo(T[], Int32) |
Copies the complete Java array into a managed array. |
| CopyTo(Int32, T[], Int32, Int32) |
Copies a range from the Java primitive array into managed memory. |
CopyTo(T[], Int32)
Copies the complete Java array into a managed array.
public override void CopyTo(T[] array, int arrayIndex);
override this.CopyTo : 'T[] * int -> unit
Parameters
- array
- T[]
The managed destination array.
- arrayIndex
- Int32
The zero-based starting index in the destination.
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
CopyTo(Int32, T[], Int32, Int32)
Copies a range from the Java primitive array into managed memory.
public abstract void CopyTo(int sourceIndex, T[] destinationArray, int destinationIndex, int length);
override this.CopyTo : int * 'T[] * int * int -> unit
Parameters
- sourceIndex
- Int32
The zero-based starting index in the Java array.
- destinationArray
- T[]
The managed destination array.
- destinationIndex
- Int32
The zero-based starting index in the managed destination.
- length
- Int32
The number of elements to copy, not a byte count.
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.