Skip to content

TNativeUIntHelper.TestBit

Check bit.

Declaration

Source position: syshelph.inc line 1558

public 
function TNativeUIntHelper.TestBit(const Index: TNativeUIntBitIndex)
                                   : Boolean;

Description

TestBit reads boolean value (true if bit is 1, and false if bit is 0) from bit number determined by argument Index.

See also

Name Description
TNativeUIntHelper.SetBit Set bit to 1.
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.