@graphty/graphty-element / format / maskCount
Function: maskCount() ​
maskCount(
mask,length):number
Defined in: graph-format/dist/src/util/mask.d.ts:39
The number of included indices below length (the loop guard of an algorithm-owned alive mask, design section 7.4).
Parameters ​
mask ​
the mask words, at least ceil(length / 32) of them
length ​
number
the number of indices the mask covers
Returns ​
number
the number of set bits in [0, length)