Struct BitArray64
A 64-bit array.
Namespace: GDX.Collections
Syntax
[Serializable]
public struct BitArray64
Examples
Useful for packing a bunch of data with known indices tightly.
if(myBitArray64[1])
{
BeAwesome();
}
Constructors
| Improve this Doc View SourceBitArray64(Int64)
Create a new BitArray64 based on provided bits0
.
Declaration
public BitArray64(long bits0)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | bits0 | An existing value to be used to create the backing data for a BitArray64 |
Fields
| Improve this Doc View SourceBits0
First reserved System.Int64 memory block (64-bits).
Declaration
public long Bits0
Field Value
Type | Description |
---|---|
System.Int64 |
Remarks
Indices 0-63
Properties
| Improve this Doc View SourceItem[Byte]
Access bit in array.
Declaration
public bool this[byte index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Byte | index | Target bit index. |
Property Value
Type | Description |
---|---|
System.Boolean |