Skip to content

@graphty/graphty-element / format / maskToIndices

Function: maskToIndices() ​

maskToIndices(mask, length): U32

Defined in: graph-format/dist/src/util/mask.d.ts:46

The included indices below length in ascending order, as a fresh U32.

Parameters ​

mask ​

U32

the mask words, at least ceil(length / 32) of them

length ​

number

the number of indices the mask covers

Returns ​

U32

the set bit indices