A variable sized bitmask. More...
Public Member Functions | |
BitSetRef (ulong *bits, int bitsSize) | |
Create a bitmask with the given bits and size. More... | |
void | Clear (Int32 bit) |
Remove the bit from the bitmask. More... | |
void | ClearAll () |
Clear all bits in the bitmask. More... | |
Boolean | IsSet (Int32 bit) |
Check if a bit is set in the bitmask. More... | |
void | Set (Int32 bit) |
Set a bit in the bitmask. More... | |
Public Attributes | |
readonly ulong * | Bits |
The unsinged long array that holds the bits. More... | |
readonly int | BitsSize |
The number of bit that the bitmask can hold. More... | |
Properties | |
Int32 | Length [get] |
Returns the size of the bitmask More... | |
A variable sized bitmask.
|
inline |
Create a bitmask with the given bits and size.
bits | The ulong array to save the bit information |
bitsSize | The maximum bit index of the bitmask |
|
inline |
Set a bit in the bitmask.
bit | Bit index, must be less than Length |
|
inline |
Remove the bit from the bitmask.
bit | Bit to remove, must be less than Length |
|
inline |
Clear all bits in the bitmask.
|
inline |
readonly ulong* Quantum.BitSetRef.Bits |
The unsinged long array that holds the bits.
readonly int Quantum.BitSetRef.BitsSize |
The number of bit that the bitmask can hold.
|
get |
Returns the size of the bitmask