Bits

interface Bits

Interface for Bitset-like structures.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class MatchAllBits(val len: Int) : Bits

Bits impl of the specified length with all bits set.

Link copied to clipboard
class MatchNoBits(val len: Int) : Bits

Bits impl of the specified length with no bits set.

Functions

Link copied to clipboard
open fun applyMask(bitSet: FixedBitSet, offset: Int)

Apply this Bits instance to the given FixedBitSet, which starts at the given offset.

Link copied to clipboard
abstract fun get(index: Int): Boolean

Returns the value of the bit with the specified index.

Link copied to clipboard
abstract fun length(): Int

Returns the number of bits in this set