NativeText.Enumerator
An enumerator over the characters (not bytes) of a NativeText.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Struct
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
- Implements: IEnumerator<Rune>, IEnumerator, IDisposable
public struct NativeText.Enumerator : IEnumerator<Unicode.Rune>, IEnumerator, IDisposable
Remarks
In an enumerator's initial state, its index is invalid. The first NativeText.Enumerator.MoveNext call advances the enumerator's index to the first character.
Constructors
Constructor | Description |
|---|---|
| Enumerator(Unity.Collections.NativeText) | Initializes and returns an instance of NativeText.Enumerator. |
| Enumerator(Unity.Collections.NativeText.ReadOnly) | Initializes and returns an instance of NativeText.Enumerator. |
Properties
Property | Description |
|---|---|
| Current | The current character. |
Methods
Method | Description |
|---|---|
| Dispose | Does nothing. |
| MoveNext | Advances the enumerator to the next character, returning true if NativeText.Enumerator.Current is valid to read afterwards. |
| Reset | Resets the enumerator to its initial state. |