@Throws(IOException::class) fun unpackInt(`is`: DataInput): Int { var ret = 0 var v: Byte do { v = `is`.readByte() ret = ret shl 7 or (v and 0x7F) } while (v and 0x80 == 0) return ret }
Unpack int value from the input stream .