FixedBitSet

constructor(numBits: Int)

Creates a new FixedBitSet. The internally allocated long array will be exactly the size needed to accommodate the numBits specified.

Parameters

numBits

the number of bits needed


constructor(storedBits: LongArray, numBits: Int)

Creates a new FixedBitSet using the provided long[] array as backing store. The storedBits array must be large enough to accommodate the numBits specified, but may be larger. In that case the 'extra' or 'ghost' bits must be clear (or they may provoke spurious side-effects)

Parameters

storedBits

the array to use as backing store

numBits

the number of bits actually needed