BitArray

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
var size: Int
Link copied to clipboard

Functions

Link copied to clipboard
fun appendBit(bit: Boolean)
Link copied to clipboard
Link copied to clipboard
fun appendBits(value: Int, numBits: Int)

Appends the least-significant bits, from value, in order from most-significant to least-significant. For example, appending 6 bits from 0x000001E will append the bits 0, 1, 1, 1, 1, 0 in that order.

Link copied to clipboard
open override fun clone(): BitArray
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
operator fun get(i: Int): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun set(i: Int)

Sets bit i.

Link copied to clipboard
fun toBytes(bitOffset: Int, array: ByteArray, offset: Int, numBytes: Int)
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun xor(other: BitArray)