| 9 | namespace LIEF::pdb::py { |
| 10 | template<> |
| 11 | void create<pdb::Function>(nb::module_& m) { |
| 12 | nb::class_<pdb::Function> clazz(m, "Function", |
| 13 | R"doc( |
| 14 | )doc"_doc |
| 15 | ); |
| 16 | clazz |
| 17 | .def_prop_ro("name", &pdb::Function::name, |
| 18 | "Name of the function"_doc) |
| 19 | |
| 20 | .def_prop_ro("RVA", &pdb::Function::RVA, |
| 21 | "The **Relative** Virtual Address of the function"_doc) |
| 22 | |
| 23 | .def_prop_ro("code_size", &pdb::Function::code_size, |
| 24 | "The size of the function"_doc) |
| 25 | |
| 26 | .def_prop_ro("section_name", &pdb::Function::section_name, |
| 27 | "The name of the section in which this function is defined"_doc) |
| 28 | |
| 29 | .def_prop_ro("debug_location", &pdb::Function::debug_location, |
| 30 | "Original source code location."_doc) |
| 31 | |
| 32 | LIEF_DEFAULT_STR(Function); |
| 33 | |
| 34 | } |
| 35 | |
| 36 | } |
nothing calls this directly
no outgoing calls
no test coverage detected