Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TNativeIntHelper.ToggleBit

Invert bit.

Declaration

Source position: syshelph.inc line 1465

public function TNativeIntHelper.ToggleBit(

  const Index: TNativeIntBitIndex

):NativeInt;

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

TNativeIntHelper.SetBit

  

Set bit to 1.

TNativeIntHelper.ToggleBit

  

Invert bit.

TNativeIntHelper.TestBit

  

Check bit.

TNativeIntHelper.HighestSetBitPos

  

Return the position of the leftmost bit set.

TNativeIntHelper.LowestSetBitPos

  

Return the position of the rightmost bit set.

TNativeIntHelper.SetBitsCount

  

Count number of bits set.

TNativeIntHelper.Bits

  

Read or write a bit.


Documentation generated on: Oct 27 2024