docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BitArrayUtilities

    Bit array utility class.

    Inheritance
    object
    BitArrayUtilities
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    public static class BitArrayUtilities

    Methods

    Get128(uint, ulong, ulong)

    Get a bit at a specific index.

    Declaration
    public static bool Get128(uint index, ulong data1, ulong data2)
    Parameters
    Type Name Description
    uint index

    Bit index.

    ulong data1

    Bit array data 1.

    ulong data2

    Bit array data 2.

    Returns
    Type Description
    bool

    The value of the bit at the specific index.

    Get16(uint, ushort)

    Get a bit at a specific index.

    Declaration
    public static bool Get16(uint index, ushort data)
    Parameters
    Type Name Description
    uint index

    Bit index.

    ushort data

    Bit array data.

    Returns
    Type Description
    bool

    The value of the bit at the specific index.

    Get256(uint, ulong, ulong, ulong, ulong)

    Get a bit at a specific index.

    Declaration
    public static bool Get256(uint index, ulong data1, ulong data2, ulong data3, ulong data4)
    Parameters
    Type Name Description
    uint index

    Bit index.

    ulong data1

    Bit array data 1.

    ulong data2

    Bit array data 2.

    ulong data3

    Bit array data 3.

    ulong data4

    Bit array data 4.

    Returns
    Type Description
    bool

    The value of the bit at the specific index.

    Get32(uint, uint)

    Get a bit at a specific index.

    Declaration
    public static bool Get32(uint index, uint data)
    Parameters
    Type Name Description
    uint index

    Bit index.

    uint data

    Bit array data.

    Returns
    Type Description
    bool

    The value of the bit at the specific index.

    Get64(uint, ulong)

    Get a bit at a specific index.

    Declaration
    public static bool Get64(uint index, ulong data)
    Parameters
    Type Name Description
    uint index

    Bit index.

    ulong data

    Bit array data.

    Returns
    Type Description
    bool

    The value of the bit at the specific index.

    Get8(uint, byte)

    Get a bit at a specific index.

    Declaration
    public static bool Get8(uint index, byte data)
    Parameters
    Type Name Description
    uint index

    Bit index.

    byte data

    Bit array data.

    Returns
    Type Description
    bool

    The value of the bit at the specific index.

    Set128(uint, ref ulong, ref ulong, bool)

    Set a bit at a specific index.

    Declaration
    public static void Set128(uint index, ref ulong data1, ref ulong data2, bool value)
    Parameters
    Type Name Description
    uint index

    Bit index.

    ulong data1

    Bit array data 1.

    ulong data2

    Bit array data 2.

    bool value

    Value to set the bit to.

    Set16(uint, ref ushort, bool)

    Set a bit at a specific index.

    Declaration
    public static void Set16(uint index, ref ushort data, bool value)
    Parameters
    Type Name Description
    uint index

    Bit index.

    ushort data

    Bit array data.

    bool value

    Value to set the bit to.

    Set256(uint, ref ulong, ref ulong, ref ulong, ref ulong, bool)

    Set a bit at a specific index.

    Declaration
    public static void Set256(uint index, ref ulong data1, ref ulong data2, ref ulong data3, ref ulong data4, bool value)
    Parameters
    Type Name Description
    uint index

    Bit index.

    ulong data1

    Bit array data 1.

    ulong data2

    Bit array data 2.

    ulong data3

    Bit array data 3.

    ulong data4

    Bit array data 4.

    bool value

    Value to set the bit to.

    Set32(uint, ref uint, bool)

    Set a bit at a specific index.

    Declaration
    public static void Set32(uint index, ref uint data, bool value)
    Parameters
    Type Name Description
    uint index

    Bit index.

    uint data

    Bit array data.

    bool value

    Value to set the bit to.

    Set64(uint, ref ulong, bool)

    Set a bit at a specific index.

    Declaration
    public static void Set64(uint index, ref ulong data, bool value)
    Parameters
    Type Name Description
    uint index

    Bit index.

    ulong data

    Bit array data.

    bool value

    Value to set the bit to.

    Set8(uint, ref byte, bool)

    Set a bit at a specific index.

    Declaration
    public static void Set8(uint index, ref byte data, bool value)
    Parameters
    Type Name Description
    uint index

    Bit index.

    byte data

    Bit array data.

    bool value

    Value to set the bit to.

    In This Article
    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)