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

Method __init__

qiling/loader/macho_parser/loadcommand.py:68–81  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

66class LoadSegment32(LoadSegment):
67
68 def __init__(self, data):
69 super().__init__(data)
70 self.vm_address = unpack("<L", self.FR.read(4))[0]
71 self.vm_size = unpack("<L", self.FR.read(4))[0]
72 self.file_offset = unpack("<L", self.FR.read(4))[0]
73 self.file_size = unpack("<L", self.FR.read(4))[0]
74 self.maximum_vm_protection = unpack("<L", self.FR.read(4))[0]
75 self.initial_vm_protection = unpack("<L", self.FR.read(4))[0]
76 self.number_of_sections = unpack("<L", self.FR.read(4))[0]
77 self.flags = unpack("<L", self.FR.read(4))[0]
78 self.sections = []
79 if self.number_of_sections:
80 for i in range(self.number_of_sections):
81 self.sections.append(LoadSection32(self.FR.read(0x44)))
82
83 def get_complete(self):
84 pass

Callers

nothing calls this directly

Calls 4

LoadSection32Class · 0.85
__init__Method · 0.45
readMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected