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

TIntegerHelper.TestBit

Check bit.

Declaration

Source position: syshelph.inc line 1190

public function TIntegerHelper.TestBit(

  const Index: TIntegerBitIndex

):Boolean;

Description

TestBit reads boolean value (true if bit is 1, and false if bit is 0) from bit number determined by argument Index.

See also

TIntegerHelper.SetBit

  

Set bit to 1.

TIntegerHelper.ToggleBit

  

Invert bit.

TIntegerHelper.TestBit

  

Check bit.

TIntegerHelper.HighestSetBitPos

  

Return the position of the leftmost bit set.

TIntegerHelper.LowestSetBitPos

  

Return the position of the rightmost bit set.

TIntegerHelper.SetBitsCount

  

Count number of bits set.

TIntegerHelper.Bits

  

Read or write a bit.


Documentation generated on: Oct 27 2024