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

Method Method>

api/python/src/ObjC/objects/pyMethod.cpp:8–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace LIEF::objc::py {
7template<>
8void create<objc::Method>(nb::module_& m) {
9 nb::class_<objc::Method> meth(m, "Method",
10 R"doc(
11 This class represents an Objective-C Method.
12 )doc"_doc
13 );
14 meth
15 .def_prop_ro("name", &objc::Method::name,
16 R"doc(
17 Name of the method
18 )doc"_doc
19 )
20 .def_prop_ro("mangled_type", &objc::Method::mangled_type,
21 R"doc(
22 Prototype of the method in its mangled representation (e.g. ``@16@0:8``)
23 )doc"_doc
24 )
25 .def_prop_ro("address", &objc::Method::address,
26 R"doc(
27 Virtual address where this method is implemented in the binary
28 )doc"_doc
29 )
30 .def_prop_ro("is_instance", &objc::Method::is_instance,
31 R"doc(
32 Whether it's an instance method or not.
33 )doc"_doc
34 )
35 ;
36}
37
38}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected