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

Method LanguageRepresentationFunction

languagerepresentation.cpp:8–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6using namespace std;
7
8LanguageRepresentationFunction::LanguageRepresentationFunction(
9 LanguageRepresentationFunctionType* type, Architecture* arch, Function* func, HighLevelILFunction* highLevelIL)
10{
11 BNCustomLanguageRepresentationFunction callbacks;
12 callbacks.context = this;
13 callbacks.freeObject = FreeCallback;
14 callbacks.externalRefTaken = nullptr;
15 callbacks.externalRefReleased = nullptr;
16 callbacks.initTokenEmitter = InitTokenEmitterCallback;
17 callbacks.getExprText = GetExprTextCallback;
18 callbacks.beginLines = BeginLinesCallback;
19 callbacks.endLines = EndLinesCallback;
20 callbacks.getCommentStartString = GetCommentStartStringCallback;
21 callbacks.getCommentEndString = GetCommentEndStringCallback;
22 callbacks.getAnnotationStartString = GetAnnotationStartStringCallback;
23 callbacks.getAnnotationEndString = GetAnnotationEndStringCallback;
24 AddRefForRegistration();
25 m_object = BNCreateCustomLanguageRepresentationFunction(
26 type->GetObject(), arch->GetObject(), func->GetObject(), highLevelIL->GetObject(), &callbacks);
27}
28
29
30LanguageRepresentationFunction::LanguageRepresentationFunction(BNLanguageRepresentationFunction* func)

Calls 1

GetObjectMethod · 0.45

Tested by

no test coverage detected