Interface IBitArray
IBitArray interface.
Namespace: UnityEngine.Rendering
Syntax
public interface IBitArray
Properties
allFalse
True if all bits are 0.
Declaration
bool allFalse { get; }
Property Value
Type | Description |
---|---|
Boolean |
allTrue
True if all bits are 1.
Declaration
bool allTrue { get; }
Property Value
Type | Description |
---|---|
Boolean |
capacity
Number of elements in the bit array.
Declaration
uint capacity { get; }
Property Value
Type | Description |
---|---|
UInt32 |
humanizedData
Returns the bit array in a human readable form.
Declaration
string humanizedData { get; }
Property Value
Type | Description |
---|---|
String |
Item[UInt32]
Returns the state of the bit at a specific index.
Declaration
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. |
Methods
BitAnd(IBitArray)
Bit-wise And operation.
Declaration
IBitArray BitAnd(IBitArray other)
Parameters
Type | Name | Description |
---|---|---|
IBitArray | other | Bit array with which to the And operation. |
Returns
Type | Description |
---|---|
IBitArray | The resulting bit array. |
BitNot()
Invert the bit array.
Declaration
IBitArray BitNot()
Returns
Type | Description |
---|---|
IBitArray |
BitOr(IBitArray)
Bit-wise Or operation.
Declaration
IBitArray BitOr(IBitArray other)
Parameters
Type | Name | Description |
---|---|---|
IBitArray | other | Bit array with which to the Or operation. |
Returns
Type | Description |
---|---|
IBitArray | The resulting bit array. |