Class BitArrayUtilities | Core RP Library | 7.2.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class BitArrayUtilities

    Bit array utility class.

    Inheritance
    Object
    BitArrayUtilities
    Namespace: UnityEngine.Rendering
    Syntax
    public static class BitArrayUtilities

    Methods

    Get128(UInt32, UInt64, UInt64)

    Get a bit at a specific index.

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

    Bit index.

    UInt64 data1

    Bit array data 1.

    UInt64 data2

    Bit array data 2.

    Returns
    Type Description
    Boolean

    The value of the bit at the specific index.

    Get16(UInt32, UInt16)

    Get a bit at a specific index.

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

    Bit index.

    UInt16 data

    Bit array data.

    Returns
    Type Description
    Boolean

    The value of the bit at the specific index.

    Get256(UInt32, UInt64, UInt64, UInt64, UInt64)

    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
    UInt32 index

    Bit index.

    UInt64 data1

    Bit array data 1.

    UInt64 data2

    Bit array data 2.

    UInt64 data3

    Bit array data 3.

    UInt64 data4

    Bit array data 4.

    Returns
    Type Description
    Boolean

    The value of the bit at the specific index.

    Get32(UInt32, UInt32)

    Get a bit at a specific index.

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

    Bit index.

    UInt32 data

    Bit array data.

    Returns
    Type Description
    Boolean

    The value of the bit at the specific index.

    Get64(UInt32, UInt64)

    Get a bit at a specific index.

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

    Bit index.

    UInt64 data

    Bit array data.

    Returns
    Type Description
    Boolean

    The value of the bit at the specific index.

    Get8(UInt32, Byte)

    Get a bit at a specific index.

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

    Bit index.

    Byte data

    Bit array data.

    Returns
    Type Description
    Boolean

    The value of the bit at the specific index.

    Set128(UInt32, ref UInt64, ref UInt64, Boolean)

    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
    UInt32 index

    Bit index.

    UInt64 data1

    Bit array data 1.

    UInt64 data2

    Bit array data 2.

    Boolean value

    Value to set the bit to.

    Set16(UInt32, ref UInt16, Boolean)

    Set a bit at a specific index.

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

    Bit index.

    UInt16 data

    Bit array data.

    Boolean value

    Value to set the bit to.

    Set256(UInt32, ref UInt64, ref UInt64, ref UInt64, ref UInt64, Boolean)

    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
    UInt32 index

    Bit index.

    UInt64 data1

    Bit array data 1.

    UInt64 data2

    Bit array data 2.

    UInt64 data3

    Bit array data 3.

    UInt64 data4

    Bit array data 4.

    Boolean value

    Value to set the bit to.

    Set32(UInt32, ref UInt32, Boolean)

    Set a bit at a specific index.

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

    Bit index.

    UInt32 data

    Bit array data.

    Boolean value

    Value to set the bit to.

    Set64(UInt32, ref UInt64, Boolean)

    Set a bit at a specific index.

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

    Bit index.

    UInt64 data

    Bit array data.

    Boolean value

    Value to set the bit to.

    Set8(UInt32, ref Byte, Boolean)

    Set a bit at a specific index.

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

    Bit index.

    Byte data

    Bit array data.

    Boolean value

    Value to set the bit to.

    In This Article
    • Methods
      • Get128(UInt32, UInt64, UInt64)
      • Get16(UInt32, UInt16)
      • Get256(UInt32, UInt64, UInt64, UInt64, UInt64)
      • Get32(UInt32, UInt32)
      • Get64(UInt32, UInt64)
      • Get8(UInt32, Byte)
      • Set128(UInt32, ref UInt64, ref UInt64, Boolean)
      • Set16(UInt32, ref UInt16, Boolean)
      • Set256(UInt32, ref UInt64, ref UInt64, ref UInt64, ref UInt64, Boolean)
      • Set32(UInt32, ref UInt32, Boolean)
      • Set64(UInt32, ref UInt64, Boolean)
      • Set8(UInt32, ref Byte, Boolean)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023