Package-level declarations

Types

Link copied to clipboard
interface BitSet<T>
Link copied to clipboard
data class IntBitSet(buffer: Int) : BitSet<Int>
Link copied to clipboard
data class LongBitSet(buffer: Long) : BitSet<Long>

Properties

Link copied to clipboard

Functions

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
fun flatBitMask(count: Int): Int

Create an Int mask of count length e.g. flatBitMask(3) = 0b00000111`.

Link copied to clipboard
fun flatLongBitMask(count: Int): Long

Create a Long mask of count length e.g. flatLongBitMask(3) = 0b00000111L`.