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

TShortIntHelper.TestBit

Check bit.

Declaration

Source position: syshelph.inc line 939

public function TShortIntHelper.TestBit(

  const Index: TShortIntBitIndex

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

TShortIntHelper.SetBit

  

Set bit to 1.

TShortIntHelper.ClearBit

  

Set bit to 0.

TShortIntHelper.ToggleBit

  

Invert bit.

TShortIntHelper.HighestSetBitPos

  

Return the position of the leftmost bit set.

TShortIntHelper.LowestSetBitPos

  

Return the position of the rightmost bit set.

TShortIntHelper.SetBitsCount

  

Count number of bits set.

TShortIntHelper.Bits

  

Read or write a bit.


Documentation generated on: Jul 24 2023