Companion

Functions

Link copied to clipboard

Exception-free version of fromString

Link copied to clipboard

Wraps bytes (with the same semantics as BitSet.toByteArray) into a BitSet. Copies all bytes.

fun fromBytes(nBytes: Int, valueSupplier: (Int) -> Byte): BitSet

Constructs a BitSet from the supplied bytes (with the same semantics as BitSet.toByteArray). Copies all bytes.

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
operator fun invoke(vararg bits: Boolean): BitSet
operator fun invoke(nBits: Int, initializer: (Int) -> Boolean): BitSet
operator fun invoke(nBits: Long, initializer: (Long) -> Boolean): BitSet