def get_adaptive_int(self):
byte = self.get_bytes(<NUM_LIT:1>)<EOL>if byte == max_byte:<EOL><INDENT>return util.inflate_long(self.get_binary())<EOL><DEDENT>byte += self.get_bytes(<NUM_LIT:3>)<EOL>return struct.unpack("<STR_LIT>", byte)[<NUM_LIT:0>]<EOL>
Fetch an int from the stream.

:return: a 32-bit unsigned `int`.