readUBits

fun readUBits(bits: Int): ULong

Reads specified bits from the stream. The bits should be in range 1..64. Bits order is sequential that means BigEndian byte order for the integers which contain more then one byte.

Throws