def _bitarray(self, bounds):
        self._markers.append({'at':self.used_bits(),'type':'bitarray(%s)'%str(bounds)})
        old_json = self._json
        self._json = {'bit_start': self.used_bits(), 'bounds': bounds}
        length = self._int(bounds)
        self._json['bits'] = self._buffer.peek_bits_as_bin_string(length)
        retval = (length, self._buffer.read_bits(length))
        old_json['bitarray%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._bitarray/original