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

TNativeIntHelper.SetBit

Set bit to 1.

Declaration

Source position: syshelph.inc line 1463

public function TNativeIntHelper.SetBit(

  const Index: TNativeIntBitIndex

):NativeInt;

Description

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

See also

TNativeIntHelper.ClearBit

  

Set bit to 0.

TNativeIntHelper.ToggleBit

  

Invert bit.

TNativeIntHelper.TestBit

  

Check bit.

TNativeIntHelper.HighestSetBitPos

  

Return the position of the leftmost bit set.

TNativeIntHelper.LowestSetBitPos

  

Return the position of the rightmost bit set.

TNativeIntHelper.SetBitsCount

  

Count number of bits set.

TNativeIntHelper.Bits

  

Read or write a bit.


Documentation generated on: Dec 22 2024