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

Method GetOperandIndexForUsage

mediumlevelilinstruction.cpp:1951–1961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1949
1950
1951bool MediumLevelILInstruction::GetOperandIndexForUsage(MediumLevelILOperandUsage usage, size_t& operandIndex) const
1952{
1953 auto operationIter = MediumLevelILInstructionBase::operationOperandIndex.find(operation);
1954 if (operationIter == MediumLevelILInstructionBase::operationOperandIndex.end())
1955 return false;
1956 auto usageIter = operationIter->second.find(usage);
1957 if (usageIter == operationIter->second.end())
1958 return false;
1959 operandIndex = usageIter->second;
1960 return true;
1961}
1962
1963
1964MediumLevelILInstruction MediumLevelILInstruction::GetSourceExpr() const

Callers

nothing calls this directly

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected