| 22 | namespace LIEF::VDEX::py { |
| 23 | |
| 24 | void 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 | |