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

Method AssembleCallback

architecture.cpp:700–710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

698}
699
700bool Architecture::AssembleCallback(void* ctxt, const char* code, uint64_t addr, BNDataBuffer* result, char** errors)
701{
702 CallbackRef<Architecture> arch(ctxt);
703 DataBuffer buf;
704 string errorStr;
705 bool ok = arch->Assemble(code, addr, buf, errorStr);
706
707 BNSetDataBufferContents(result, buf.GetData(), buf.GetLength());
708 *errors = BNAllocString(errorStr.c_str());
709 return ok;
710}
711
712
713bool Architecture::IsNeverBranchPatchAvailableCallback(void* ctxt, const uint8_t* data, uint64_t addr, size_t len)

Callers

nothing calls this directly

Calls 4

c_strMethod · 0.80
AssembleMethod · 0.45
GetDataMethod · 0.45
GetLengthMethod · 0.45

Tested by

no test coverage detected