MCPcopy Create free account
hub / github.com/lief-project/LIEF / init_utils

Function init_utils

api/python/src/ART/pyUtils.cpp:25–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace LIEF::ART::py {
24
25void init_utils(nb::module_& m) {
26 lief_mod->def("is_art",
27 nb::overload_cast<const std::string&>(&is_art),
28 "Check if the **file** given in parameter is an ART"_doc,
29 "path"_a);
30
31 lief_mod->def("is_art",
32 nb::overload_cast<const std::vector<uint8_t>&>(&is_art),
33 "Check if the **raw data** given in parameter is a ART"_doc,
34 "raw"_a);
35
36 m.def("version",
37 nb::overload_cast<const std::string&>(&version),
38 "Return the ART version of the **file** given in parameter"_doc,
39 "file"_a);
40
41 m.def("version",
42 nb::overload_cast<const std::vector<uint8_t>&>(&version),
43 "Return the ART version of the **raw data** given in parameter"_doc,
44 "raw"_a);
45
46
47 m.def("android_version",
48 &android_version,
49 "Return the " RST_CLASS_REF(lief.Android.ANDROID_VERSIONS) " associated with the given ART version "_doc,
50 "art_version"_a);
51}
52
53}
54

Callers 1

initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected