docs.unity.cn
    Show / Hide Table of Contents

    Struct FixedString4096Bytes.Enumerator

    An enumerator over the characters (not bytes) of a FixedString4096Bytes.

    Namespace: Unity.Collections
    Syntax
    public struct Enumerator : IEnumerator
    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(FixedString4096Bytes)

    Initializes and returns an instance of FixedString4096Bytes.Enumerator.

    Declaration
    public Enumerator(FixedString4096Bytes other)
    Parameters
    Type Name Description
    FixedString4096Bytes other

    A FixeString4096 for which to create an enumerator.

    Properties

    Current

    The current character.

    Declaration
    public readonly 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
    Boolean

    True if Current is valid to read after the call.

    Reset()

    Resets the enumerator to its initial state.

    Declaration
    public void Reset()
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, June 14, 2022
    Terms of use