MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / HighLevelILInstructionPluginCommandActionCallback

Method HighLevelILInstructionPluginCommandActionCallback

plugin.cpp:156–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154
155
156void PluginCommand::HighLevelILInstructionPluginCommandActionCallback(
157 void* ctxt, BNBinaryView* view, BNHighLevelILFunction* func, size_t instr)
158{
159 RegisteredHighLevelILInstructionCommand* cmd = (RegisteredHighLevelILInstructionCommand*)ctxt;
160 Ref<BinaryView> viewObject = new BinaryView(BNNewViewReference(view));
161 Ref<HighLevelILFunction> funcObject = new HighLevelILFunction(BNNewHighLevelILFunctionReference(func));
162 HighLevelILInstruction instrObject = funcObject->GetInstruction(instr);
163 cmd->action(viewObject, instrObject);
164}
165
166
167bool PluginCommand::DefaultPluginCommandIsValidCallback(void* ctxt, BNBinaryView* view)

Callers

nothing calls this directly

Calls 2

GetInstructionMethod · 0.45
actionMethod · 0.45

Tested by

no test coverage detected