IntBitSet

data class IntBitSet(buffer: Int) : BitSet<Int>

Constructors

Link copied to clipboard
constructor(buffer: Int)

Functions

Link copied to clipboard
open override fun asPrimitive(): Int
Link copied to clipboard
open override fun extract(offset: Int, count: Int): Int

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
open operator override fun get(index: Int): Boolean
Link copied to clipboard
open operator override fun set(index: Int, value: Boolean): IntBitSet