Method | Description | |
---|---|---|
ClearBit ( byte value, int bit ) : byte |
Resets the value of a bit to 0 (false), given the address of the bit
|
|
GetValue ( byte value, int bit ) : bool |
Returns the value of a bit in a bit, given the address of the bit
|
|
SetBit ( byte value, int bit ) : byte |
Sets the value of a bit to 1 (true), given the address of the bit
|
public static ClearBit ( byte value, int bit ) : byte | ||
value | byte | |
bit | int | |
return | byte |
public static GetValue ( byte value, int bit ) : bool | ||
value | byte | |
bit | int | |
return | bool |
public static SetBit ( byte value, int bit ) : byte | ||
value | byte | |
bit | int | |
return | byte |