Companion

object Companion

Functions

Link copied to clipboard

Returns the popcount or cardinality of "a and not b" or "intersection(a, not(b))". Neither set is modified.

Link copied to clipboard
fun andRange(source: FixedBitSet, sourceFrom: Int, dest: FixedBitSet, destFrom: Int, length: Int)

And length bits starting at sourceFrom from source into dest starting at destFrom.

Link copied to clipboard
fun bits2words(numBits: Int): Int

returns the number of 64 bit words it would take to hold numBits

Link copied to clipboard
fun copyOf(bits: Bits): FixedBitSet

Make a copy of the given bits.

Link copied to clipboard

If the given FixedBitSet is large enough to hold numBits+1, returns the given bits, otherwise returns a new FixedBitSet which can hold the requested number of bits.

Link copied to clipboard

Returns the popcount or cardinality of the intersection of the two sets. Neither set is modified.

Link copied to clipboard
fun orRange(source: FixedBitSet, sourceFrom: Int, dest: FixedBitSet, destFrom: Int, length: Int)

Or length bits starting at sourceFrom from source into dest starting at destFrom.

Link copied to clipboard

Returns the popcount or cardinality of the union of the two sets. Neither set is modified.