readBigInteger

fun readBigInteger(bits: Int, signed: Boolean = false): BigInteger

Reads arbitrary number of bits from the stream. If signed is true the last bit is interpreted as indicator of sign. Bits order is sequential that means BigEndian byte order for the integers which contain more then one byte.

Throws