Skip to content

TInt64Helper.ToggleBit

Invert bit.

Declaration

Source position: syshelph.inc line 1384

public 
function TInt64Helper.ToggleBit(const Index: TInt64BitIndex) : Int64;

Description

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.

See also

Name Description
TInt64Helper.SetBit Set bit to 1.
TInt64Helper.ToggleBit Invert bit.
TInt64Helper.TestBit Check bit.
TInt64Helper.HighestSetBitPos Return the position of the leftmost bit set.
TInt64Helper.LowestSetBitPos Return the position of the rightmost bit set.
TInt64Helper.SetBitsCount Count number of bits set.
TInt64Helper.Bits Read or write a bit.