JniEnvironment.Arrays.GetByteArrayElements 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.
Obtains a native-access buffer for Java byte-array elements.
public static sbyte* GetByteArrayElements(Java.Interop.JniObjectReference array, bool* isCopy);
static member GetByteArrayElements : Java.Interop.JniObjectReference * nativeptr<bool> -> nativeptr<sbyte>
Parameters
- array
- JniObjectReference
A valid Java byte-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
An sbyte pointer, or null if JNI fails. Pair a successful acquisition with ReleaseByteArrayElements.
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.