INNER CODE UNIT · Python

getObj

bongtrop/hbctool · hbctool/hbc/hbc59/__init__.py:26

    def getObj(self):
        assert self.obj, "Obj is not set."
        return self.obj

    def setObj(self, obj):
        self.obj = obj

    def getVersion(self):
        return 74    

    def getHeader(self):
        return self.getObj()["header"]

    def getFunctionCount(self):
        return self.getObj()["header"]["functionCount"]

    def getFunction(self, fid, disasm=True):
        assert fid >= 0 and fid < self.getFunctionCount(), "Invalid function ID"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…