INNER CODE UNIT · Python
getVersion
bongtrop/hbctool · hbctool/hbc/hbc59/__init__.py:33
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"
functionHeader = self.getObj()["functionHeaders"][fid]
offset = functionHeader["offset"]
paramCount = functionHeader["paramCount"]
registerCount = functionHeader["frameSize"]
symbolCount = functionHeader["environmentSize"]
bytecodeSizeInBytes = functionHeader["bytecodeSizeInBytes"]