Skip to content

TNativeUIntHelper.SetBit

Set bit to 1.

Declaration

Source position: syshelph.inc line 1555

public 
function TNativeUIntHelper.SetBit(const Index: TNativeUIntBitIndex)
                                  : NativeUInt;

Description

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

See also

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