Invert bit
Source position: syshelph.inc line 455
public function TSmallIntHelper.ToggleBit( |
const Index: TSmallIntBitIndex |
):SmallInt; |
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 |
|
|
Invert bit |
|
|
Check bit |
|
TSmallIntHelper.HighestSetBitPos |
|
Return the position of the leftmost bit set |
TSmallIntHelper.LowestSetBitPos |
|
Return the position of the rightmost bit set |
TSmallIntHelper.SetBitsCount |
|
Count number of bits set |
TSmallIntHelper.Bits |
|
Read or write a bit |