Closed lj94093 closed 3 years ago
You can get an instance of InsnDetail
by calling Capstone::insn_detail()
. Then, you can get the architecture-specific detail (like operands) by calling the .arch_detail()
method. For details, see the demo
example:
I should probably add "back references" to the types that explain how to get an instance of that type.
For some reason I need to get the operand type of a instruction. But I find that
Insn.detail()
is a private method.Is there some reason necessarily to set the
detail()
topub(crate)
?Or maybe I have to use thecapstone-sys
directly?