Utf16ToUtf8(char*, int, byte*, out int, int)
Copies UTF-16 characters from one buffer to another buffer as UTF-8.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
Utf16ToUtf8(char*, int, byte*, int, int)
public static ConversionError Utf16ToUtf8(char* utf16Buffer, int utf16Length, byte* utf8Buffer, out int utf8Length, int utf8Capacity)
Parameters
Returns
Type | Description |
|---|---|
| ConversionError | ConversionError.None if the copy fully completes. Otherwise, returns ConversionError.Overflow. |
Remarks
Assumes the source data is valid UTF-16.