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

TIntegerHelper.SetBit

Set bit to 1

Declaration

Source position: syshelph.inc line 720

public function TIntegerHelper.SetBit(

  const Index: TIntegerBitIndex

):Integer;

Description

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

See also

TIntegerHelper.ClearBit

  

Set bit to 0

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: Sep 29 2022