MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / get_code

Method get_code

windows/native_exec/simple_x64.py:821–823  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

819 raise ValueError("Cannot encode <{0} {1}>:(".format(type(self).__name__, initial_args))
820
821 def get_code(self):
822 prefix_opcode = b"".join(chr(p.PREFIX_VALUE) for p in self.prefix)
823 return prefix_opcode + bytes(self.value.dump())
824
825 def get_code_py3(self):
826 prefix_opcode = b"".join(bytes([p.PREFIX_VALUE]) for p in self.prefix)

Callers

nothing calls this directly

Calls 1

dumpMethod · 0.45

Tested by

no test coverage detected