def elfFromMemoryObject(memobj, baseaddr): fd = vstruct.MemObjFile(memobj, baseaddr) return Elf(fd)
def peFromMemoryObject(memobj, baseaddr): fd = vstruct.MemObjFile(memobj, baseaddr) return PE(fd, inmem=True)