Java.Util.Arrays.CopyOf Method
Copies newLength elements from original into a new array.

Syntax

[Android.Runtime.Register("copyOf", "([BI)[B", "")]
public static byte[] CopyOf (byte[] p0, int p1)

Parameters

original
the original array
newLength
the length of the new array

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NegativeArraySizeExceptionif newLength
Java.Lang.NullPointerExceptionif original == null

Remarks

Copies newLength elements from original into a new array. If newLength is greater than original.length, the result is padded with the value (byte) 0.

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 9