BitArray

interface BitArray : Iterable<Boolean> , RandomAccess, List<Boolean>

Functions

Link copied to clipboard
open operator override fun contains(element: Boolean): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<Boolean>): Boolean
Link copied to clipboard
abstract fun copy(): BitArray
Link copied to clipboard
open fun fulled(value: Boolean, startIndex: Int = 0, endIndex: Int = lastIndex): BitArray

Creates new array, and then set value to all indexes betweeb startIndex and endIndex. Then return result

Link copied to clipboard
abstract operator fun get(index: Int): Boolean
Link copied to clipboard
open fun getByte4(index: Int): Byte

Returns byte from 4 bites using index

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

Returns byte from 8 bites using index

Link copied to clipboard
open override fun indexOf(element: Boolean): Int
Link copied to clipboard
abstract fun inverted(): BitArray

Creates copy of this array, then inverts all bits and returns result

Link copied to clipboard
abstract override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): ListIterator<Boolean>
Link copied to clipboard
open override fun lastIndexOf(element: Boolean): Int
Link copied to clipboard
open override fun listIterator(): ListIterator<Boolean>
open override fun listIterator(index: Int): BitArrayListIteratorImpl
Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): List<Boolean>
Link copied to clipboard
open fun toBooleanArray(): BooleanArray
Link copied to clipboard
abstract fun update(index: Int, value: Boolean): BitArray
Link copied to clipboard
open 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

Link copied to clipboard
open fun updateByte8(index: Int, value: Byte): BitArray

Properties

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

Inheritors

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