| 23 | namespace LIEF::DEX::py { |
| 24 | |
| 25 | void 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 | } |