(self, data)
| 59 | |
| 60 | class 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" %( |
nothing calls this directly
no test coverage detected