文档

Unity Engine

Unity Engine

GetSByteArrayElement(nint, int)

Returns the value of one element of a primitive array.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AndroidJNIModule

GetSByteArrayElement(IntPtr, int)

public static sbyte GetSByteArrayElement(nint array, int index)

Parameters

array

The Java array to read from.

index

The index of the array element.

Returns

Type

Description

sbyteThe value of the array element.

Remarks

This function is a special case of GetByteArrayRegion(), called with region size set to 1.