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

Method HighLevelILInstructionPluginCommandIsValidCallback

plugin.cpp:252–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250
251
252bool PluginCommand::HighLevelILInstructionPluginCommandIsValidCallback(
253 void* ctxt, BNBinaryView* view, BNHighLevelILFunction* func, size_t instr)
254{
255 RegisteredHighLevelILInstructionCommand* cmd = (RegisteredHighLevelILInstructionCommand*)ctxt;
256 Ref<BinaryView> viewObject = new BinaryView(BNNewViewReference(view));
257 Ref<HighLevelILFunction> funcObject = new HighLevelILFunction(BNNewHighLevelILFunctionReference(func));
258 HighLevelILInstruction instrObject = funcObject->GetInstruction(instr);
259 return cmd->isValid(viewObject, instrObject);
260}
261
262
263void PluginCommand::Register(

Callers

nothing calls this directly

Calls 1

GetInstructionMethod · 0.45

Tested by

no test coverage detected