Mask256 is a 256-bit mask that can be used to store 256 boolean values. More...
Inherits IEquatable< Mask256 >.
Public Member Functions | |
Mask256 (long a, long b=0, long c=0, long d=0) | |
Creates a new mask with specified initial values. More... | |
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... | |
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... | |
Static Public Member Functions | |
static implicit | operator long (Mask256 mask) |
Equivalent to More... | |
static implicit | operator Mask256 (long value) |
Converts a long value to a mask. More... | |
static Mask256 | operator& (Mask256 a, Mask256 b) |
Performs a logical-AND operation. More... | |
static Mask256 | operator| (Mask256 a, Mask256 b) |
Performs a logical-OR operation. More... | |
static Mask256 | operator~ (Mask256 a) |
Performs a logical-NOT operation. More... | |
Properties | |
long | this[int i] [get, set] |
Returns selected 64-bit value from the mask. More... | |
Mask256 is a 256-bit mask that can be used to store 256 boolean values.
|
inline |
Creates a new mask with specified initial values.
|
inline |
Sets all bits to 0.
|
inline |
Sets a specific bit in the mask.
|
inline |
Returns a specific bit from the mask.
|
inlinestatic |
Equivalent to
mask[0]
|
inlinestatic |
Converts a long value to a mask.
Performs a logical-AND operation.
Performs a logical-OR operation.
Performs a logical-NOT operation.
|
inline |
Returns true
if the masks are equal.
|
inline |
Calculates the hash code of the mask.
|
inline |
Returns true
if the masks are equal.
|
inline |
Returns true
if the mask is empty.
|
inline |
Converts the mask to a string in the form of "a:b:c:d".
|
getset |
Returns selected 64-bit value from the mask.
i |