Package-level declarations

Types

Link copied to clipboard
sealed class BitVector : Iterable<Int>

Uncompressed, dynamically resizeable bitset, similar to java.util.BitSet

Link copied to clipboard

Performance optimized bitset implementation. Certain operations are prefixed with unsafe; these methods perform no validation.

Functions

Link copied to clipboard
fun bitsOf(vararg bits: Int): BitVector
Link copied to clipboard
inline fun <T, R> List<T>.filterAndMap(mask: MutableBitVector, mapper: (T) -> R): List<R>
Link copied to clipboard
fun <T> List<T>.filterWith(mask: MutableBitVector, maskOffset: Int = 0): List<T>
Link copied to clipboard
fun <T> List<T>.filterWithNot(mask: MutableBitVector, maskOffset: Int = 0): List<T>
Link copied to clipboard
fun BitVector.firstOrElse(default: Int): Int
Link copied to clipboard
fun BitVector.firstZero(start: Int, endExclusive: Int = words.size shl WORD_INDEX_SHIFT): Int
Link copied to clipboard
Link copied to clipboard
inline fun iterateBits(mask: ByteArray, body: (fieldIndex: Int) -> Unit)
Link copied to clipboard
fun BitVector.lastOrElse(default: Int): Int
Link copied to clipboard