

def get_block(self, block_num):
    'Returns the data corresponding to the given block number\n\n        Args:\n            block_num: The block number of data to request. By the TFTP\n            protocol, blocks are consecutive 512 byte sized chunks of data with\n            the exception of the final block which may be less than 512 chunks.\n\n        Return:\n            A 512 byte or less chunk of data corresponding to the given block\n            number.\n        '
    return self.data[((self - 1) * 512):(block_num * 512)]

dataset/ETHPy150Open dropbox/emmer/emmer/response_router.py ReadBuffer.get_block/VarMisuse@21/173 `block_num`->`self`