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

Method Operand>

api/python/src/asm/aarch64/pyOperand.cpp:21–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19namespace LIEF::assembly::aarch64::py {
20template<>
21void create<aarch64::Operand>(nb::module_& m) {
22 nb::class_<aarch64::Operand> obj(m, "Operand",
23 R"doc(This class represents an operand for an AArch64 instruction)doc"_doc
24 );
25
26 obj
27 .def_prop_ro("to_string", &Operand::to_string,
28 R"doc(Pretty representation of the operand)doc"_doc
29 )
30 LIEF_DEFAULT_STR(aarch64::Operand)
31 ;
32
33 nb::module_ operands = m.def_submodule("operands");
34 create<aarch64::operands::Immediate>(operands);
35 create<aarch64::operands::Register>(operands);
36 create<aarch64::operands::Memory>(operands);
37 create<aarch64::operands::PCRelative>(operands);
38}
39}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected