Companion

Functions

Link copied to clipboard

Exception-free version of fromString

Link copied to clipboard
fun fromString(stringRepresentation: String): BitSet

Creates bitset from hunan-readably bit string representation

Link copied to clipboard
operator fun invoke(bytes: ByteArray): BitSet

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

operator fun invoke(nBits: Int, initializer: (Int) -> Boolean): BitSet