copyOf

abstract fun copyOf(bs: BitSet, length: Int): T

Create a copy of the given BitSet which has length bits.