Struct BitArray128
A 128-bit array.
Namespace: GDX.Collections
Syntax
public struct BitArray128
Examples
Useful for packing a bunch of data with known indices tightly.
if(myBitArray128[1])
{
BeAwesome();
}
Fields
| Improve this Doc View SourceBits0
First reserved System.Int32 memory block.
Declaration
public int Bits0
Field Value
Type | Description |
---|---|
System.Int32 |
Remarks
Indices 0-31
Bits1
Second reserved System.Int32 memory block.
Declaration
public int Bits1
Field Value
Type | Description |
---|---|
System.Int32 |
Remarks
Indices 32-63
Bits2
Third reserved System.Int32 memory block.
Declaration
public int Bits2
Field Value
Type | Description |
---|---|
System.Int32 |
Remarks
Indices 64-95
Bits3
Fourth reserved System.Int32 memory block.
Declaration
public int Bits3
Field Value
Type | Description |
---|---|
System.Int32 |
Remarks
Indices 96-127
Properties
| Improve this Doc View SourceItem[Int32]
Access bit in array.
Declaration
public bool this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Target bit index. |
Property Value
Type | Description |
---|---|
System.Boolean |