LengthInUtf8Bytes()
Returns the number of bytes required to encode this rune as UTF-8.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
public int LengthInUtf8Bytes()
Returns
Type | Description |
|---|---|
| int | The number of bytes required to encode this rune as UTF-8. If the rune's codepoint is invalid, returns 4 (the maximum possible encoding length). |