Skip to content

BitSetOptions

BitSetOptions = object

Defined in: packages/data/src/bit/bit-set.ts:9

optional size?: number

Defined in: packages/data/src/bit/bit-set.ts:18

How many bits the set can hold: members are the integers 0 .. size - 1.

Omit it and the set is sized to exactly fit the constructor’s iterable, which is what new BitSet(members) wants; state it when the universe is known up front and larger than the initial members. Fixed either way — see BitVector for the growable counterpart.