Append a segment descriptor to the list. :param int start: The start address of the segment. :param int length: The length of the segment. :param int data_offset: The offset of the data within the segment. :param int data_length: The length of the data within the segment. :param Segmen
(self, start: int, length: int, data_offset: int = 0, data_length: int = 0, flags: 'SegmentFlag' = SegmentFlag.SegmentReadable, auto_defined: bool = True)
| 1520 | self.image_base = image_base |
| 1521 | |
| 1522 | def append(self, start: int, length: int, data_offset: int = 0, data_length: int = 0, |
| 1523 | flags: 'SegmentFlag' = SegmentFlag.SegmentReadable, auto_defined: bool = True): |
| 1524 | """ |
| 1525 | Append a segment descriptor to the list. |
| 1526 | |
| 1527 | :param int start: The start address of the segment. |
| 1528 | :param int length: The length of the segment. |
| 1529 | :param int data_offset: The offset of the data within the segment. |
| 1530 | :param int data_length: The length of the data within the segment. |
| 1531 | :param SegmentFlag flags: The flags of the segment. |
| 1532 | :param bool auto_defined: Whether the segment is auto-defined. |
| 1533 | """ |
| 1534 | segment_info = { |
| 1535 | "start": start - self.image_base, |
| 1536 | "length": length, |
| 1537 | "data_offset": data_offset, |
| 1538 | "data_length": data_length, |
| 1539 | "flags": flags, |
| 1540 | "auto_defined": auto_defined |
| 1541 | } |
| 1542 | super().append(segment_info) |
| 1543 | |
| 1544 | |
| 1545 | class Section: |
no outgoing calls
no test coverage detected