Struct BitArray32
Bit array of size 32.
Implements
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[Serializable]
public struct BitArray32 : IBitArray
Constructors
BitArray32(IEnumerable<uint>)
Constructor.
Declaration
public BitArray32(IEnumerable<uint> bitIndexTrue)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<uint> | bitIndexTrue | List of indices where bits should be set to true. |
BitArray32(uint)
Constructor.
Declaration
public BitArray32(uint initValue)
Parameters
Type | Name | Description |
---|---|---|
uint | initValue | Initialization value. |
Properties
this[uint]
Returns the state of the bit at a specific index.
Declaration
public bool this[uint index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
uint | index | Index of the bit. |
Property Value
Type | Description |
---|---|
bool | State of the bit at the provided index. |
allFalse
True if all bits are 0.
Declaration
public bool allFalse { get; }
Property Value
Type | Description |
---|---|
bool |
allTrue
True if all bits are 1.
Declaration
public bool allTrue { get; }
Property Value
Type | Description |
---|---|
bool |
capacity
Number of elements in the bit array.
Declaration
public uint capacity { get; }
Property Value
Type | Description |
---|---|
uint |
humanizedData
Returns the bit array in a human readable form.
Declaration
public string humanizedData { get; }
Property Value
Type | Description |
---|---|
string |
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. |
BitNot()
Bit-wise Not
Declaration
public IBitArray BitNot()
Returns
Type | Description |
---|---|
IBitArray | The resulting bit array. |
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. |
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 |
---|---|
bool | True if the provided bit array is equal to this.. |
Overrides
GetHashCode()
Get the hashcode of the bit array.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | Hashcode of the bit array. |
Overrides
Operators
operator &(BitArray32, BitArray32)
Bit-wise And operator
Declaration
public static BitArray32 operator &(BitArray32 a, BitArray32 b)
Parameters
Type | Name | Description |
---|---|---|
BitArray32 | a | First bit array. |
BitArray32 | b | Second bit array. |
Returns
Type | Description |
---|---|
BitArray32 | The resulting bit array. |
operator |(BitArray32, BitArray32)
Bit-wise Or operator
Declaration
public static BitArray32 operator |(BitArray32 a, BitArray32 b)
Parameters
Type | Name | Description |
---|---|---|
BitArray32 | a | First bit array. |
BitArray32 | b | Second bit array. |
Returns
Type | Description |
---|---|
BitArray32 | The resulting bit array. |
operator ==(BitArray32, BitArray32)
Equality operator.
Declaration
public static bool operator ==(BitArray32 a, BitArray32 b)
Parameters
Type | Name | Description |
---|---|---|
BitArray32 | a | First bit array. |
BitArray32 | b | Second bit array. |
Returns
Type | Description |
---|---|
bool | True if both bit arrays are equals. |
operator !=(BitArray32, BitArray32)
Inequality operator.
Declaration
public static bool operator !=(BitArray32 a, BitArray32 b)
Parameters
Type | Name | Description |
---|---|---|
BitArray32 | a | First bit array. |
BitArray32 | b | Second bit array. |
Returns
Type | Description |
---|---|
bool | True if the bit arrays are not equals. |
operator ~(BitArray32)
Bit-wise Not operator
Declaration
public static BitArray32 operator ~(BitArray32 a)
Parameters
Type | Name | Description |
---|---|---|
BitArray32 | a | Bit array with which to do the operation. |
Returns
Type | Description |
---|---|
BitArray32 | The resulting bit array. |