appendBits

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.

Parameters

value

int containing bits to append

numBits

bits from value to append