Struct Words
Namespace: Unity.Collections.LowLevel.Unsafe
Syntax
public struct Words
Remarks
A "Words" is an integer that refers to 4,096 or fewer chars of UTF-16 text in a global storage blob. Each should refer to at most about one printed page of text.
If you need more text, consider using one Words struct for each printed page's worth.
Each Words instance that you create is stored in a single, internally-managed WordStorage object, which can hold up to 16,384 Words entries. Once added, the entries in WordStorage cannot be modified or removed.
Methods
SetFixedString<T>(ref T)
Declaration
public void SetFixedString<T>(ref T value)
where T : IUTF8Bytes, INativeList<byte>
Parameters
Type | Name | Description |
---|---|---|
T | value |
Type Parameters
Name | Description |
---|---|
T |
SetString(String)
Declaration
public void SetString(string value)
Parameters
Type | Name | Description |
---|---|---|
String | value |
ToFixedString<T>(ref T)
Declaration
public void ToFixedString<T>(ref T value)
where T : IUTF8Bytes, INativeList<byte>
Parameters
Type | Name | Description |
---|---|---|
T | value |
Type Parameters
Name | Description |
---|---|
T |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |