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

Method MediumLevelILInstructionPluginCommandIsValidCallback

plugin.cpp:231–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229
230
231bool PluginCommand::MediumLevelILInstructionPluginCommandIsValidCallback(
232 void* ctxt, BNBinaryView* view, BNMediumLevelILFunction* func, size_t instr)
233{
234 RegisteredMediumLevelILInstructionCommand* cmd = (RegisteredMediumLevelILInstructionCommand*)ctxt;
235 Ref<BinaryView> viewObject = new BinaryView(BNNewViewReference(view));
236 Ref<MediumLevelILFunction> funcObject = new MediumLevelILFunction(BNNewMediumLevelILFunctionReference(func));
237 MediumLevelILInstruction instrObject = funcObject->GetInstruction(instr);
238 return cmd->isValid(viewObject, instrObject);
239}
240
241
242bool PluginCommand::HighLevelILFunctionPluginCommandIsValidCallback(

Callers

nothing calls this directly

Calls 1

GetInstructionMethod · 0.45

Tested by

no test coverage detected