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

Function check_prefix

python/examples/triage/imports.py:32–36  ·  view source on GitHub ↗
(platform_name, prefixes)

Source from the content-addressed store, hash-verified

30 return result
31
32 def check_prefix(platform_name, prefixes):
33 for prefix in prefixes:
34 if platform_name.startswith(prefix):
35 return True
36 return False
37
38 for p in platform_info:
39 if check_prefix(bv.platform.name, p["prefixes"]):

Callers 1

get_platform_infoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected