Struct BitArray256
A 256-bit array.
Namespace: GDX.Collections
Syntax
public struct BitArray256
Examples
Useful for packing a bunch of data with known indices tightly.
if(myBitArray256[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
Bits4
Fifth reserved System.Int32 memory block.
Declaration
public int Bits4
Field Value
Type | Description |
---|---|
System.Int32 |
Remarks
Indices 128-159
Bits5
Sixth reserved System.Int32 memory block.
Declaration
public int Bits5
Field Value
Type | Description |
---|---|
System.Int32 |
Remarks
Indices 160-191
Bits6
Seventh reserved System.Int32 memory block.
Declaration
public int Bits6
Field Value
Type | Description |
---|---|
System.Int32 |
Remarks
Indices 192-223
Bits7
Eighth reserved System.Int32 memory block.
Declaration
public int Bits7
Field Value
Type | Description |
---|---|
System.Int32 |
Remarks
Indices 224-255
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 |