from

fun from(bytes: ByteArray): BitSet(source)

Wraps bytes into a BitSet. Copies all bytes. Hence, modifications to bytes are not reflected in the newly created BitSet.