def read_filetable(self, firstblock, numblocks):
        """ Given the length and start of the filetable return all its data
        """
        buf = StringIO()
        info = 0x80
        block = firstblock
        for i in xrange(0, numblocks):
            buf.write(self.read_block(self.fix_blocknum(block), 0x1000))
            blockhash = self.get_blockhash(block)
            if self.table_size_shift > 0 and blockhash.info < 0x80:
                blockhash = self.get_blockhash(block, 1)
            block = blockhash.nextblock
            info = blockhash.info
        return buf.getvalue()
dataset/ETHPy150Open arkem/py360/py360/stfs.py/STFS.read_filetable/original