Add support for DEX fields

This commit is contained in:
Daniel Firer
2021-02-14 15:08:20 +02:00
committed by Romain Thomas
parent 3d7802aaac
commit b43d3fd6c8
26 changed files with 569 additions and 6 deletions
+9
View File
@@ -73,6 +73,15 @@ void create<Class>(py::module& m) {
"Iterator over " RST_CLASS_REF(lief.DEX.Method) " (s) having the given name",
"name"_a)
.def_property_readonly("fields",
static_cast<no_const_getter_t<it_fields>>(&Class::fields),
"Iterator over " RST_CLASS_REF(lief.DEX.Field) " in this class")
.def("get_field",
static_cast<it_fields(Class::*)(const std::string&)>(&Class::fields),
"Iterator over " RST_CLASS_REF(lief.DEX.Field) " (s) having the given name",
"name"_a)
.def_property_readonly("access_flags",
static_cast<getter_t<Class::access_flags_list_t>>(&Class::access_flags),
"List of " RST_CLASS_REF(lief.DEX.ACCESS_FLAGS) "")