docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryGetNextRange

    TryGetNextRange(v128, int, out int, out int)

    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.

    int 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.

    int nextRangeBegin

    The index at which the first enabled bit is found.

    int nextRangeEnd

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

    Returns
    Type Description
    bool

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

    In This Article
    • TryGetNextRange(v128, int, out int, out int)
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)