Language

JniEnvironment.Arrays.GetByteArrayRegion Method

Definition

Copies a region of a Java byte array into a caller-owned buffer.

public static void GetByteArrayRegion(Java.Interop.JniObjectReference array, int start, int length, sbyte* buffer);
static member GetByteArrayRegion : Java.Interop.JniObjectReference * int * int * nativeptr<sbyte> -> unit

Parameters

array
JniObjectReference

A valid reference to the source Java byte array.

start
Int32

The zero-based source element index.

length
Int32

The number of elements to copy.

buffer
SByte*

A writable buffer for at least length sbyte values, valid for this call.

Applies to