Struct BitArray128
Bit array of size 128.
Namespace: UnityEngine.Rendering
Syntax
public struct BitArray128 : IBitArray
Constructors
BitArray128(IEnumerable<UInt32>)
Constructor.
Declaration
public BitArray128(IEnumerable<uint> bitIndexTrue)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<UInt32> | bitIndexTrue | List of indices where bits should be set to true. |
BitArray128(UInt64, UInt64)
Constructor.
Declaration
public BitArray128(ulong initValue1, ulong initValue2)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | initValue1 | Initialization value 1. |
UInt64 | initValue2 | Initialization value 2. |
Properties
allFalse
True if all bits are 0.
Declaration
public readonly bool allFalse { get; }
Property Value
Type | Description |
---|---|
Boolean |
Implements
allTrue
True if all bits are 1.
Declaration
public readonly bool allTrue { get; }
Property Value
Type | Description |
---|---|
Boolean |
Implements
capacity
Number of elements in the bit array.
Declaration
public readonly uint capacity { get; }
Property Value
Type | Description |
---|---|
UInt32 |
Implements
humanizedData
Returns the bit array in a human readable form.
Declaration
public readonly string humanizedData { get; }
Property Value
Type | Description |
---|---|
String |
Implements
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
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
BitNot()
Bit-wise Not
Declaration
public IBitArray BitNot()
Returns
Type | Description |
---|---|
IBitArray | The resulting bit array. |
Implements
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
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.. |
GetHashCode()
Get the hashcode of the bit array.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | Hashcode of the bit array. |
Operators
BitwiseAnd(BitArray128, BitArray128)
Bit-wise And operator
Declaration
public static BitArray128 operator &(BitArray128 a, BitArray128 b)
Parameters
Type | Name | Description |
---|---|---|
BitArray128 | a | First bit array. |
BitArray128 | b | Second bit array. |
Returns
Type | Description |
---|---|
BitArray128 | The resulting bit array. |
BitwiseOr(BitArray128, BitArray128)
Bit-wise Or operator
Declaration
public static BitArray128 operator |(BitArray128 a, BitArray128 b)
Parameters
Type | Name | Description |
---|---|---|
BitArray128 | a | First bit array. |
BitArray128 | b | Second bit array. |
Returns
Type | Description |
---|---|
BitArray128 | The resulting bit array. |
Equality(BitArray128, BitArray128)
Equality operator.
Declaration
public static bool operator ==(BitArray128 a, BitArray128 b)
Parameters
Type | Name | Description |
---|---|---|
BitArray128 | a | First bit array. |
BitArray128 | b | Second bit array. |
Returns
Type | Description |
---|---|
Boolean | True if both bit arrays are equals. |
Inequality(BitArray128, BitArray128)
Inequality operator.
Declaration
public static bool operator !=(BitArray128 a, BitArray128 b)
Parameters
Type | Name | Description |
---|---|---|
BitArray128 | a | First bit array. |
BitArray128 | b | Second bit array. |
Returns
Type | Description |
---|---|
Boolean | True if the bit arrays are not equals. |
OnesComplement(BitArray128)
Bit-wise Not operator
Declaration
public static BitArray128 operator ~(BitArray128 a)
Parameters
Type | Name | Description |
---|---|---|
BitArray128 | a | First bit array. |
Returns
Type | Description |
---|---|
BitArray128 | The resulting bit array. |