MCPcopy Create free account
hub / github.com/HexHive/NASS / parse_string_range

Function parse_string_range

tools/gef.py:3835–3838  ·  view source on GitHub ↗

Parses an address range (e.g. 0x400000-0x401000)

(s: str)

Source from the content-addressed store, hash-verified

3833
3834
3835def parse_string_range(s: str) -> Iterator[int]:
3836 """Parses an address range (e.g. 0x400000-0x401000)"""
3837 addrs = s.split("-")
3838 return map(lambda x: int(x, 16), addrs)
3839
3840
3841@lru_cache()

Callers 3

do_invokeMethod · 0.85
do_invokeMethod · 0.85
__parse_procfs_mapsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected