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

Method GetIndex

lowlevelilinstruction.cpp:1127–1136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1125
1126
1127size_t LowLevelILOperand::GetIndex() const
1128{
1129 if (m_type != IndexLowLevelOperand)
1130 throw LowLevelILInstructionAccessException();
1131 if (m_usage == OutputMemoryVersionLowLevelOperandUsage)
1132 return m_instr.GetRawOperandAsExpr(m_operandIndex).GetRawOperandAsIndex(0);
1133 if (m_usage == StackMemoryVersionLowLevelOperandUsage)
1134 return m_instr.GetRawOperandAsExpr(m_operandIndex).GetRawOperandAsIndex(2);
1135 return m_instr.GetRawOperandAsIndex(m_operandIndex);
1136}
1137
1138
1139LowLevelILInstruction LowLevelILOperand::GetExpr() const

Callers

nothing calls this directly

Tested by

no test coverage detected