Home > @esengine/ecs-framework-monorepo > BitMask64Utils > popCount
BitMask64Utils.popCount() method
计算掩码中设置为1的位数
Signature:
typescript
static popCount(mask: BitMask64Data): number;
Parameters
Parameter | Type | Description |
---|---|---|
mask | 要计算的掩码 |
Returns:
number
掩码中1的位数