API ReferenceSandbox
public sealed struct Sandbox.StringToken
Strings are commonly converted to tokens in engine, to save space and speed up things like comparisons. We wrap this functionality up in the StringToken struct, because we can apply a bunch of compile time optimizations to speed up the conversion.
Constructors
Showing 2 constructors
No results match this filter.
Methods
Showing 1 methods
public static Sandbox.StringToken Literal(string value, uint token)
This is used by codegen. String literals are replaced by this function call, which avoids having to create or lookup the string token.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.System |
| Doc ID | T:Sandbox.StringToken |