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

TCardinalHelper.SetBit

Set bit to 1.

Declaration

Source position: syshelph.inc line 1118

public function TCardinalHelper.SetBit(

  const Index: TCardinalBitIndex

):Cardinal;

Description

SetBit puts value 1 to bit number determined by argument Index.

See also

TCardinalHelper.ClearBit

  

Set bit to 0.

TCardinalHelper.ToggleBit

  

Invert bit.

TCardinalHelper.TestBit

  

Check bit.

TCardinalHelper.HighestSetBitPos

  

Return the position of the leftmost bit set.

TCardinalHelper.LowestSetBitPos

  

Return the position of the rightmost bit set.

TCardinalHelper.SetBitsCount

  

Count number of bits set.

TCardinalHelper.Bits

  

Read or write a bit.


Documentation generated on: Oct 27 2024