Struct NumberedWords
Namespace: Unity.Collections.LowLevel.Unsafe
Syntax
public struct NumberedWords
Remarks
A "NumberedWords" is a "Words", plus possibly a string of leading zeroes, followed by possibly a positive integer. The zeroes and integer aren't stored centrally as a string, they're stored as an int. Therefore, 1,000,000 items with names from FooBarBazBifBoo000000 to FooBarBazBifBoo999999 Will cost 8MB + a single copy of "FooBarBazBifBoo", instead of ~48MB. They say that this is a thing, too.
Methods
SetString(String)
Declaration
public void SetString(string value)
Parameters
Type | Name | Description |
---|---|---|
String | value |
SetString<T>(ref T)
Declaration
public void SetString<T>(ref T value)
where T : IUTF8Bytes, INativeList<byte>
Parameters
Type | Name | Description |
---|---|---|
T | value |
Type Parameters
Name | Description |
---|---|
T |
ToFixedString<T>(ref T)
Declaration
public int ToFixedString<T>(ref T result)
where T : IUTF8Bytes, INativeList<byte>
Parameters
Type | Name | Description |
---|---|---|
T | result |
Returns
Type | Description |
---|---|
Int32 |
Type Parameters
Name | Description |
---|---|
T |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |