docs.unity.cn
    Show / Hide Table of Contents

    Method TryGetNextRange

    TryGetNextRange(v128, Int32, out Int32, out Int32)

    Retrieves the next contiguous range of set bits starting at or after the provided index in the provided mask.

    Declaration
    public static bool TryGetNextRange(v128 mask, int firstIndexToCheck, out int nextRangeBegin, out int nextRangeEnd)
    Parameters
    Type Name Description
    v128 mask

    The enabled-bit mask.

    Int32 firstIndexToCheck

    The index at which to start checking for enabled bits. This method ignores all bits whose indices are smaller than the index provided here.

    Int32 nextRangeBegin

    The index at which the first enabled bit is found.

    Int32 nextRangeEnd

    The index of the first bit NOT in the next range.

    Returns
    Type Description
    Boolean

    True if another range of contiguous bits was found (in which case, the range info is stored in nextRangeBegin and nextRangeEnd. Otherwise, false.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023