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

Function init_utils

api/python/src/VDEX/pyUtils.cpp:24–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected