def get_block(self, block_num):
        """Returns the data corresponding to the given block number

        Args:
            block_num: The block number of data to request. By the TFTP
            protocol, blocks are consecutive 512 byte sized chunks of data with
            the exception of the final block which may be less than 512 chunks.

        Return:
            A 512 byte or less chunk of data corresponding to the given block
            number.
        """
        return self.data[(block_num - 1) * 512:block_num * 512]
dataset/ETHPy150Open dropbox/emmer/emmer/response_router.py/ReadBuffer.get_block/original