GetStringLength(nint)
Returns the length (the count of Unicode characters) of a Java string.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AndroidJNIModule
GetStringLength(IntPtr)
public static int GetStringLength(nint str)
Parameters
The Java string.
Returns
Type | Description |
|---|---|
| int | The number of Unicode characters in the string. |
Remarks
Additional Resources: Java Native Interface Specification (Oracle)