Skip to content

TQWordHelper.SetBit

Set bit to 1.

Declaration

Source position: syshelph.inc line 1320

public 
function TQWordHelper.SetBit(const Index: TQwordBitIndex) : QWord;

Description

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

See also

Name Description
TQWordHelper.ClearBit Set bit to 0.
TQWordHelper.ToggleBit Invert bit.
TQWordHelper.TestBit Check bit.
TQWordHelper.HighestSetBitPos Return the position of the leftmost bit set.
TQWordHelper.LowestSetBitPos Return the position of the rightmost bit set.
TQWordHelper.SetBitsCount Count number of bits set.
TQWordHelper.Bits Read or write a bit.