Struct FixedString512Bytes.Enumerator
An enumerator over the characters (not bytes) of a FixedString512Bytes.
Namespace: Unity.Collections
Assembly: Unity.Collections.dll
Syntax
public struct FixedString512Bytes.Enumerator
Remarks
In an enumerator's initial state, Current is not valid to read. The first MoveNext() call advances the enumerator's index to the first character.
Constructors
Enumerator(FixedString512Bytes)
Initializes and returns an instance of FixedString512Bytes.Enumerator.
Declaration
public Enumerator(FixedString512Bytes other)
Parameters
Type | Name | Description |
---|---|---|
FixedString512Bytes | other | A FixeString512 for which to create an enumerator. |
Properties
Current
The current character.
Declaration
public Unicode.Rune Current { get; }
Property Value
Type | Description |
---|---|
Unicode.Rune | The current character. |
Remarks
In an enumerator's initial state, Current is not valid to read.
Methods
Dispose()
Does nothing.
Declaration
public void Dispose()
MoveNext()
Advances the enumerator to the next character.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
bool | True if Current is valid to read after the call. |
Reset()
Resets the enumerator to its initial state.
Declaration
public void Reset()