LengthInUtf8Bytes()
Returns the number of bytes required to encode this rune as UTF-8.
Read time 1 minuteLast updated 10 days ago
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). |