MCPcopy Create free account
hub / github.com/HexHive/NASS / __create_template

Method __create_template

tools/gef.py:5550–5560  ·  view source on GitHub ↗
(self, structname: str, fpath: pathlib.Path)

Source from the content-addressed store, hash-verified

5548 return subprocess.call(cmd)
5549
5550 def __create_template(self, structname: str, fpath: pathlib.Path) -> None:
5551 template = f"""from ctypes import *
5552
5553class {structname}(Structure):
5554 _fields_ = []
5555
5556 _values_ = []
5557"""
5558 with fpath.open("w") as f:
5559 f.write(template)
5560 return
5561
5562
5563@register

Callers 1

Calls 2

openMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected