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

Method Function>

api/python/src/PDB/pyFunction.cpp:11–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace LIEF::pdb::py {
10template<>
11void 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected