MCPcopy Create free account
hub / github.com/qilingframework/qiling / __name_to_enum

Function __name_to_enum

qiling/utils.py:39–42  ·  view source on GitHub ↗
(name: str, mapping: Mapping[str, T], aliases: Mapping[str, str] = {})

Source from the content-addressed store, hash-verified

37
38
39def __name_to_enum(name: str, mapping: Mapping[str, T], aliases: Mapping[str, str] = {}) -> Optional[T]:
40 key = name.casefold()
41
42 return mapping.get(aliases.get(key) or key)
43
44
45def os_convert(os: str) -> Optional[QL_OS]:

Callers 3

os_convertFunction · 0.85
arch_convertFunction · 0.85
debugger_convertFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected