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