Utility class for manipulating bitmasks.
More...
|
static int | SetBit (this int bitmask, int pos) |
| Sets the bit at the given position to 1.
|
|
static int | UnsetBit (this int bitmask, int pos) |
| Sets the bit at the given position to 0.
|
|
static bool | IsBitSet (this int bitmask, int pos) |
| Checks if the bit at the given position is set.
|
|
Utility class for manipulating bitmasks.
◆ IsBitSet()
static bool ImpactCFX.Bitmask.IsBitSet |
( |
this int |
bitmask, |
|
|
int |
pos |
|
) |
| |
|
static |
Checks if the bit at the given position is set.
- Parameters
-
bitmask | The bitmask to change. |
pos | The index of the bit to unset. |
- Returns
- If the bit at the given position is set.
◆ SetBit()
static int ImpactCFX.Bitmask.SetBit |
( |
this int |
bitmask, |
|
|
int |
pos |
|
) |
| |
|
static |
Sets the bit at the given position to 1.
- Parameters
-
bitmask | The bitmask to change. |
pos | The index of the bit |
- Returns
- The updated bitmask.
◆ UnsetBit()
static int ImpactCFX.Bitmask.UnsetBit |
( |
this int |
bitmask, |
|
|
int |
pos |
|
) |
| |
|
static |
Sets the bit at the given position to 0.
- Parameters
-
bitmask | The bitmask to change. |
pos | The index of the bit to unset. |
- Returns
- The updated bitmask.