Method CreateText
CreateText(string, Allocator)
Creates UnsafeText that has UTF8 representation of source string
Declaration
public static UnsafeText CreateText(string source, Allocator allocator)
Parameters
| Type | Name | Description |
|---|---|---|
| string | source | UTF16 string |
| Allocator | allocator | Allocator that should be used to allocate UnsafeText |
Returns
| Type | Description |
|---|---|
| UnsafeText | UnsafeText that has UTF8 representation of source string |