from

fun from(bytes: ByteArray): BitSet

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