Method CreateText__Unmanaged
CreateText__Unmanaged(byte*, int, Allocator)
Creates UnsafeText that has UTF8 representation of source string When CreateText is called in the burst - CreateText__Unmanaged is called instead
Declaration
[RequiredMember]
public static UnsafeText CreateText__Unmanaged(byte* utf8Ptr, int utf8Length, Allocator allocator)
Parameters
| Type | Name | Description |
|---|---|---|
| byte* | utf8Ptr | UTF8 string pointer |
| int | utf8Length | UTF8 string's length in bytes |
| Allocator | allocator | Allocator that should be used to allocate UnsafeText |
Returns
| Type | Description |
|---|---|
| UnsafeText | UnsafeText that has UTF8 representation of source string |