BitSet

interface BitSet<T>

Inheritors

Functions

Link copied to clipboard
abstract fun asPrimitive(): T
Link copied to clipboard
abstract fun extract(offset: Int, count: Int): T

Extracts count bits at offset. e.g. 0b00001100.extract(2, 2) = 0b11 = 0x03.

Link copied to clipboard
fun <T> BitSet<T>.extract(range: IntRange): T

Extracts range bits. e.g. 0b00001100.extract(2..3) = 0b11 = 0x03.

Link copied to clipboard
abstract operator fun get(index: Int): Boolean
Link copied to clipboard
abstract operator fun set(index: Int, value: Boolean): BitSet<T>