readBits

fun readBits(bits: Int): Int

Return

int representing the bits read. The bits will appear as the least-significant bits of the int

Parameters

bits

number of bits to read

Throws

if numBits isn't in 1,32 or more than is available