Struct BitArray64 | Core RP Library | 7.2.1
docs.unity3d.com
    Show / Hide Table of Contents

    Struct BitArray64

    Bit array of size 64.

    Namespace: UnityEngine.Rendering
    Syntax
    [Serializable]
    public struct BitArray64 : IBitArray

    Constructors

    BitArray64(IEnumerable<UInt32>)

    Constructor.

    Declaration
    public BitArray64(IEnumerable<uint> bitIndexTrue)
    Parameters
    Type Name Description
    IEnumerable<UInt32> bitIndexTrue

    List of indices where bits should be set to true.

    BitArray64(UInt64)

    Constructor.

    Declaration
    public BitArray64(ulong initValue)
    Parameters
    Type Name Description
    UInt64 initValue

    Initialization value.

    Properties

    allFalse

    True if all bits are 0.

    Declaration
    public bool allFalse { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IBitArray.allFalse

    allTrue

    True if all bits are 1.

    Declaration
    public bool allTrue { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IBitArray.allTrue

    capacity

    Number of elements in the bit array.

    Declaration
    public uint capacity { get; }
    Property Value
    Type Description
    UInt32
    Implements
    IBitArray.capacity

    humanizedData

    Returns the bit array in a human readable form.

    Declaration
    public string humanizedData { get; }
    Property Value
    Type Description
    String
    Implements
    IBitArray.humanizedData

    Item[UInt32]

    Returns the state of the bit at a specific index.

    Declaration
    public bool this[uint index] { get; set; }
    Parameters
    Type Name Description
    UInt32 index

    Index of the bit.

    Property Value
    Type Description
    Boolean

    State of the bit at the provided index.

    Implements
    IBitArray.Item[UInt32]

    Methods

    BitAnd(IBitArray)

    Bit-wise And

    Declaration
    public IBitArray BitAnd(IBitArray other)
    Parameters
    Type Name Description
    IBitArray other

    Bit array with which to do the operation.

    Returns
    Type Description
    IBitArray

    The resulting bit array.

    Implements
    IBitArray.BitAnd(IBitArray)

    BitNot()

    Bit-wise Not

    Declaration
    public IBitArray BitNot()
    Returns
    Type Description
    IBitArray

    The resulting bit array.

    Implements
    IBitArray.BitNot()

    BitOr(IBitArray)

    Bit-wise Or

    Declaration
    public IBitArray BitOr(IBitArray other)
    Parameters
    Type Name Description
    IBitArray other

    Bit array with which to do the operation.

    Returns
    Type Description
    IBitArray

    The resulting bit array.

    Implements
    IBitArray.BitOr(IBitArray)

    Equals(Object)

    Equality operator.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    Bit array to compare to.

    Returns
    Type Description
    Boolean

    True if the provided bit array is equal to this..

    Overrides
    ValueType.Equals(Object)

    GetHashCode()

    Get the hashcode of the bit array.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    Hashcode of the bit array.

    Overrides
    ValueType.GetHashCode()

    Operators

    BitwiseAnd(BitArray64, BitArray64)

    Bit-wise And operator

    Declaration
    public static BitArray64 operator &(BitArray64 a, BitArray64 b)
    Parameters
    Type Name Description
    BitArray64 a

    First bit array.

    BitArray64 b

    Second bit array.

    Returns
    Type Description
    BitArray64

    The resulting bit array.

    BitwiseOr(BitArray64, BitArray64)

    Bit-wise Or operator

    Declaration
    public static BitArray64 operator |(BitArray64 a, BitArray64 b)
    Parameters
    Type Name Description
    BitArray64 a

    First bit array.

    BitArray64 b

    Second bit array.

    Returns
    Type Description
    BitArray64

    The resulting bit array.

    Equality(BitArray64, BitArray64)

    Equality operator.

    Declaration
    public static bool operator ==(BitArray64 a, BitArray64 b)
    Parameters
    Type Name Description
    BitArray64 a

    First bit array.

    BitArray64 b

    Second bit array.

    Returns
    Type Description
    Boolean

    True if both bit arrays are equals.

    Inequality(BitArray64, BitArray64)

    Inequality operator.

    Declaration
    public static bool operator !=(BitArray64 a, BitArray64 b)
    Parameters
    Type Name Description
    BitArray64 a

    First bit array.

    BitArray64 b

    Second bit array.

    Returns
    Type Description
    Boolean

    True if the bit arrays are not equals.

    OnesComplement(BitArray64)

    Bit-wise Not operator

    Declaration
    public static BitArray64 operator ~(BitArray64 a)
    Parameters
    Type Name Description
    BitArray64 a

    Bit array with which to do the operation.

    Returns
    Type Description
    BitArray64

    The resulting bit array.

    In This Article
    • Constructors
      • BitArray64(IEnumerable<UInt32>)
      • BitArray64(UInt64)
    • Properties
      • allFalse
      • allTrue
      • capacity
      • humanizedData
      • Item[UInt32]
    • Methods
      • BitAnd(IBitArray)
      • BitNot()
      • BitOr(IBitArray)
      • Equals(Object)
      • GetHashCode()
    • Operators
      • BitwiseAnd(BitArray64, BitArray64)
      • BitwiseOr(BitArray64, BitArray64)
      • Equality(BitArray64, BitArray64)
      • Inequality(BitArray64, BitArray64)
      • OnesComplement(BitArray64)
    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