'Loads a torrent file that is already in memory.
:param data: The torrent file data.
:return: A TorrentDef object.'

@staticmethod
def load_from_memory(data):

    data = bdecode(data)
    return TorrentDef._create(data)
