{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method Find | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Find

    Find(int, int)

    Finds the first length-N contiguous sequence of 0 bits in this bit array.

    Declaration
    public readonly int Find(int pos, int numBits)
    Parameters
    Type Name Description
    int pos

    Index at which to start searching.

    int numBits

    Number of contiguous 0 bits to look for.

    Returns
    Type Description
    int

    The index in this array where the sequence is found. The index will be greater than or equal to pos. Returns -1 if no occurrence is found.

    Find(int, int, int)

    Finds the first length-N contiguous sequence of 0 bits in this bit array. Searches only a subsection.

    Declaration
    public readonly int Find(int pos, int count, int numBits)
    Parameters
    Type Name Description
    int pos

    Index at which to start searching.

    int count

    Number of bits to search.

    int numBits

    Number of contiguous 0 bits to look for.

    Returns
    Type Description
    int

    The index in this array where the sequence is found. The index will be greater than or equal to pos but less than pos + count. Returns -1 if no occurrence is found.

    In This Article
    Back to top
    Copyright © 2023 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)