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

TSmallIntHelper.TestBit

Check bit

Declaration

Source position: syshelph.inc line 583

public function TSmallIntHelper.TestBit(

  const Index: TSmallIntBitIndex

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

TSmallIntHelper.SetBit

  

Set bit to 1

TSmallIntHelper.ToggleBit

  

Invert bit

TSmallIntHelper.TestBit

  

Check bit

TSmallIntHelper.HighestSetBitPos

  

Return the position of the leftmost bit set

TSmallIntHelper.LowestSetBitPos

  

Return the position of the rightmost bit set

TSmallIntHelper.SetBitsCount

  

Count number of bits set

TSmallIntHelper.Bits

  

Read or write a bit


Documentation generated on: Sep 29 2022