readBits

fun readBits(numBits: Int): Int

Return

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

Parameters

numBits

number of bits to read

Throws

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