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

Class AddressSet

pythonmemorymodule/pefile.py:729–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

727
728
729class AddressSet(set):
730 def __init__(self):
731 super().__init__()
732 self.min = None
733 self.max = None
734
735 def add(self, value):
736 super().add(value)
737 self.min = value if self.min is None else min(self.min, value)
738 self.max = value if self.max is None else max(self.max, value)
739
740 def diff(self):
741 return 0 if self.min is None or self.max is None else self.max - self.min
742
743
744class UnicodeStringWrapperPostProcessor:

Callers 1

get_import_tableMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected