Mask256 is a 256-bit mask that can be used to store 256 boolean values.
More...
Inherits IEquatable< Mask256 >.
|
void | Clear () |
| Sets all bits to 0. More...
|
|
bool | Equals (Mask256 other) |
| Returns true if the masks are equal. More...
|
|
override bool | Equals (object obj) |
| Returns true if the masks are equal. More...
|
|
bool | GetBit (int bitIndex) |
| Returns a specific bit from the mask. More...
|
|
override int | GetHashCode () |
| Calculates the hash code of the mask. More...
|
|
bool | IsNothing () |
| Returns true if the mask is empty. More...
|
|
| Mask256 (long a, long b=0, long c=0, long d=0) |
| Creates a new mask with specified initial values. More...
|
|
void | SetBit (int bitIndex, bool set) |
| Sets a specific bit in the mask. More...
|
|
override string | ToString () |
| Converts the mask to a string in the form of "a:b:c:d". More...
|
|
Mask256 is a 256-bit mask that can be used to store 256 boolean values.
◆ Mask256()
Mask256 |
( |
long |
a, |
|
|
long |
b = 0 , |
|
|
long |
c = 0 , |
|
|
long |
d = 0 |
|
) |
| |
Creates a new mask with specified initial values.
◆ Clear()
◆ Equals() [1/2]
Returns true
if the masks are equal.
◆ Equals() [2/2]
override bool Equals |
( |
object |
obj | ) |
|
Returns true
if the masks are equal.
◆ GetBit()
bool GetBit |
( |
int |
bitIndex | ) |
|
Returns a specific bit from the mask.
◆ GetHashCode()
override int GetHashCode |
( |
| ) |
|
Calculates the hash code of the mask.
◆ IsNothing()
Returns true
if the mask is empty.
- Returns
◆ operator long()
static implicit operator long |
( |
Mask256 |
mask | ) |
|
|
static |
◆ operator Mask256()
static implicit operator Mask256 |
( |
long |
value | ) |
|
|
static |
Converts a long value to a mask.
◆ operator&()
Performs a logical-AND operation.
◆ operator|()
Performs a logical-OR operation.
◆ operator~()
Performs a logical-NOT operation.
◆ SetBit()
void SetBit |
( |
int |
bitIndex, |
|
|
bool |
set |
|
) |
| |
Sets a specific bit in the mask.
◆ ToString()
override string ToString |
( |
| ) |
|
Converts the mask to a string in the form of "a:b:c:d".
◆ this[int i]
Returns selected 64-bit value from the mask.
- Parameters
-