popCount property
int
get
popCount
The number of set bits (1s) in the binary representation.
Implementation
int get popCount {
int count = 0;
int value = _converter.bits;
while (value != 0) {
count += value & 1;
value >>= 1;
}
return count;
}