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

Function ordLookup

pythonmemorymodule/ordlookup/__init__.py:21–34  ·  view source on GitHub ↗

Lookup a name for the given ordinal if it's in our database.

(libname, ord_val, make_name=False)

Source from the content-addressed store, hash-verified

19
20
21def ordLookup(libname, ord_val, make_name=False):
22 """
23 Lookup a name for the given ordinal if it's in our
24 database.
25 """
26 names = ords.get(libname.lower())
27 if names is None:
28 if make_name is True:
29 return formatOrdString(ord_val)
30 return None
31 name = names.get(ord_val)
32 if name is None:
33 return formatOrdString(ord_val)
34 return name

Callers

nothing calls this directly

Calls 2

formatOrdStringFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected