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

Function init_utils

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

Source from the content-addressed store, hash-verified

23namespace LIEF::DEX::py {
24
25void init_utils(nb::module_& m) {
26 lief_mod->def("is_dex",
27 nb::overload_cast<const std::string&>(&is_dex),
28 "Check if the **file** given in parameter is a DEX"_doc,
29 "path"_a);
30
31 lief_mod->def("is_dex",
32 nb::overload_cast<const std::vector<uint8_t>&>(&is_dex),
33 "Check if the **raw data** given in parameter is a DEX"_doc,
34 "raw"_a);
35
36 m.def("version",
37 nb::overload_cast<const std::string&>(&version),
38 "Return the DEX 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 DEX version of the **raw data** given in parameter"_doc,
44 "raw"_a);
45}
46
47}

Callers 1

initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected