BitArray

interface BitArray : Iterable<Boolean>

Functions

Link copied to clipboard
open fun full(value: Boolean, startIndex: Int = 0, endIndex: Int = lastIndex): BitArray
Link copied to clipboard
abstract operator fun get(index: Int): Boolean
Link copied to clipboard
abstract fun getByte4(index: Int): Byte

Returns byte from 4 bites using index

Link copied to clipboard
abstract fun getByte8(index: Int): Byte

Returns byte from 8 bites using index

Link copied to clipboard
abstract fun inverted(): BitArray
Link copied to clipboard
abstract operator fun iterator(): Iterator<Boolean>
Link copied to clipboard
open fun toByteArray(): BooleanArray
Link copied to clipboard
abstract fun update(index: Int, value: Boolean): BitArray
Link copied to clipboard
abstract fun updateByte4(index: Int, value: Byte): BitArray

Sets 4 bits value to this inline value using offset index. value must be less or equals 0xF

Properties

Link copied to clipboard
open val lastIndex: Int
Link copied to clipboard
abstract val size: Int

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard