MCPcopy Create free account
hub / github.com/qilingframework/qiling / __init__

Method __init__

qiling/loader/macho_parser/header.py:61–67  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

59
60class FatInfo:
61 def __init__(self, data):
62 FR = FileReader(data)
63 self.cpu_type = unpack(">L", FR.read(4))[0]
64 self.cpu_subtype = unpack(">L", FR.read(4))[0]
65 self.offset = unpack(">L", FR.read(4))[0]
66 self.size = unpack(">L", FR.read(4))[0]
67 self.align = 2 ** unpack(">L", FR.read(4))[0]
68
69 # def __str__(self):
70 # return ("CPU 0x%X, CPU subtype 0x%X, offset 0x%X, size 0x%X, align %d" %(

Callers

nothing calls this directly

Calls 2

readMethod · 0.95
FileReaderClass · 0.85

Tested by

no test coverage detected