MCPcopy Create free account
hub / github.com/dobin/SuperMega / add_code_file

Method add_code_file

observer.py:47–56  ·  view source on GitHub ↗
(self, name, data: bytes)

Source from the content-addressed store, hash-verified

45
46
47 def add_code_file(self, name, data: bytes):
48 if not config.has_r2:
49 return
50
51 ret = r2_disas(data)
52 self.files.append((name + ".disas.ascii", ret['color']))
53 #self.write_to_file(name + ".disas.txt", ret['text'])
54 #self.write_to_file(name + ".disas.ascii", ret['color'])
55 #self.write_to_file(name + ".hex", ret['hexdump'])
56 #self.write_to_file_bin(name + ".bin", data)
57
58
59 def write_logs(self, working_dir: str):

Callers 2

start_realFunction · 0.80
inject_exeMethod · 0.80

Calls 1

r2_disasFunction · 0.90

Tested by

no test coverage detected