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

Method SetAutoReturnRegisters

function.cpp:1040–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1038
1039
1040void Function::SetAutoReturnRegisters(const Confidence<std::vector<uint32_t>>& returnRegs)
1041{
1042 BNRegisterSetWithConfidence regs;
1043 regs.regs = new uint32_t[returnRegs.GetValue().size()];
1044 regs.count = returnRegs.GetValue().size();
1045 for (size_t i = 0; i < regs.count; i++)
1046 regs.regs[i] = returnRegs.GetValue()[i];
1047 regs.confidence = returnRegs.GetConfidence();
1048 BNSetAutoFunctionReturnRegisters(m_object, &regs);
1049 delete[] regs.regs;
1050}
1051
1052
1053void Function::SetAutoCallingConvention(const Confidence<Ref<CallingConvention>>& convention)

Callers

nothing calls this directly

Calls 3

GetConfidenceMethod · 0.80
sizeMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected