MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / get_overlay

Method get_overlay

pythonmemorymodule/pefile.py:7348–7357  ·  view source on GitHub ↗

Get the data appended to the file and not contained within the area described in the headers.

(self)

Source from the content-addressed store, hash-verified

7346 return None
7347
7348 def get_overlay(self):
7349 """Get the data appended to the file and not contained within the area described
7350 in the headers."""
7351
7352 overlay_data_offset = self.get_overlay_data_start_offset()
7353
7354 if overlay_data_offset is not None:
7355 return self.__data__[overlay_data_offset:]
7356
7357 return None
7358
7359 def trim(self):
7360 """Return the just data defined by the PE headers, removing any overlaid data."""

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected