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

TSmallIntHelper.SetBit

Set bit to 1.

Declaration

Source position: syshelph.inc line 1047

public function TSmallIntHelper.SetBit(

  const Index: TSmallIntBitIndex

):SmallInt;

Description

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

See also

TSmallIntHelper.ClearBit

  

Set bit to 0.

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: Dec 23 2024