def _int(self, bounds):
        old_json = self._json
        self._json = {'bit_start': self.used_bits(), 'bounds': bounds, 'bits':self._buffer.peek_bits_as_bin_string(bounds[1])}
        bitpos = self.used_bits()
        retval = bounds[0] + self._buffer.read_bits(bounds[1])
        self._markers.append({'at':bitpos,'type':'int(%s)=%i @ %s'%(str(bounds), retval, self._buffer.state())})
        self._json['value'] = retval
        old_json['int%i'%self.used_bits()] = self._json
        self._json = old_json
        return retval
dataset/ETHPy150Open karlgluck/heroes-of-the-storm-replay-parser/s2protocol/decoders.py/BitPackedDecoderDebug._int/original