Skip to content

TByteHelper.SetBitsCount

Count number of bits set.

Declaration

Source position: syshelph.inc line 906

public 
function TByteHelper.SetBitsCount : Byte;

Description

SetBitsCount returns the number of bits set in a byte.

See also

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