MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / updateRanges

Method updateRanges

python/examples/triage/byte.py:143–151  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

141 return (start, end)
142
143 def updateRanges(self):
144 self.ranges = self.data.allocated_ranges
145 # Remove regions not backed by the file
146 for i in self.data.segments:
147 if i.data_length < len(i):
148 self.removeRange(i.start + i.data_length, i.end)
149 self.allocatedLength = 0
150 for i in self.ranges:
151 self.allocatedLength += i.end - i.start
152
153 def removeRange(self, begin, end):
154 newRanges = []

Callers 2

__init__Method · 0.95
refreshLinesMethod · 0.95

Calls 1

removeRangeMethod · 0.95

Tested by

no test coverage detected