LongBitSet

data class LongBitSet(buffer: Long) : BitSet<Long>

Constructors

Link copied to clipboard
constructor(buffer: Long)

Functions

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

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): LongBitSet