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

TNativeUIntHelper.ToggleBit

Invert bit

Declaration

Source position: syshelph.inc line 1087

public function TNativeUIntHelper.ToggleBit(

  const Index: TNativeUIntBitIndex

):NativeUInt;

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

TNativeUIntHelper.SetBit

  

Set bit to 1

TNativeUIntHelper.ToggleBit

  

Invert bit

TNativeUIntHelper.TestBit

  

Check bit

TNativeUIntHelper.HighestSetBitPos

  

Return the position of the leftmost bit set

TNativeUIntHelper.LowestSetBitPos

  

Return the position of the rightmost bit set

TNativeUIntHelper.SetBitsCount

  

Count number of bits set

TNativeUIntHelper.Bits

  

Read or write a bit


Documentation generated on: Sep 29 2022