BytesBitArray

value class BytesBitArray(data: ByteArray) : BitArray

Constructors

Link copied to clipboard
fun BytesBitArray(byteSize: Int)

Functions

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

Returns byte from 4 bites using index

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

Returns byte from 8 bites using index

Link copied to clipboard
fun invert()
Link copied to clipboard
open override fun inverted(): BytesBitArray
Link copied to clipboard
open operator override fun iterator(): BitArrayListIterator
Link copied to clipboard
operator fun set(index: Int, value: Boolean)
Link copied to clipboard
fun setByte4(index: Int, value: Byte)
Link copied to clipboard
open fun toByteArray(): BooleanArray
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun update(index: Int, value: Boolean): BytesBitArray
Link copied to clipboard
open override fun updateByte4(index: Int, value: Byte): BytesBitArray

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

Properties

Link copied to clipboard
val data: ByteArray
Link copied to clipboard
open val lastIndex: Int
Link copied to clipboard
open override val size: Int