Struct FixedString128Bytes.Enumerator
An enumerator over the characters (not bytes) of a FixedString128Bytes.
Namespace: Unity.Collections
Assembly: Unity.Collections.dll
Syntax
public struct FixedString128Bytes.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(FixedString128Bytes)
Initializes and returns an instance of FixedString128Bytes.Enumerator.
Declaration
public Enumerator(FixedString128Bytes other)
Parameters
Type | Name | Description |
---|---|---|
FixedString128Bytes | other | A FixeString128 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()