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

TWordHelper.TestBit

Check bit.

Declaration

Source position: syshelph.inc line 1000

public function TWordHelper.TestBit(

  const Index: TWordBitIndex

):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

TWordHelper.SetBit

  

Set bit to 1.

TWordHelper.ToggleBit

  

Invert bit.

TWordHelper.TestBit

  

Check bit.

TWordHelper.HighestSetBitPos

  

Return the position of the leftmost bit set.

TWordHelper.LowestSetBitPos

  

Return the position of the rightmost bit set.

TWordHelper.SetBitsCount

  

Count number of bits set.

TWordHelper.Bits

  

Read or write a bit.


Documentation generated on: Dec 22 2024