Invert bit.
Source position: syshelph.inc line 943
public function TShortIntHelper.ToggleBit( |
const Index: TShortIntBitIndex |
):ShortInt; |
ToggleBit reads bit value from bit number determined by argument Index, inverts it (if it was 0 it becomes 1, and vice versa), and stores it back.
|
Set bit to 1. |
|
|
Set bit to 0. |
|
|
Check bit. |
|
|
Return the position of the leftmost bit set. |
|
|
Return the position of the rightmost bit set. |
|
|
Count number of bits set. |
|
|
Read or write a bit. |