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

Method Register

languagerepresentation.cpp:279–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277
278
279void LanguageRepresentationFunctionType::Register(LanguageRepresentationFunctionType* type)
280{
281 BNCustomLanguageRepresentationFunctionType callbacks;
282 callbacks.context = type;
283 callbacks.create = CreateCallback;
284 callbacks.isValid = IsValidCallback;
285 callbacks.getTypePrinter = GetTypePrinterCallback;
286 callbacks.getTypeParser = GetTypeParserCallback;
287 callbacks.getLineFormatter = GetLineFormatterCallback;
288 callbacks.getFunctionTypeTokens = GetFunctionTypeTokensCallback;
289 callbacks.freeLines = FreeLinesCallback;
290
291 type->AddRefForRegistration();
292 type->m_object =
293 BNRegisterLanguageRepresentationFunctionType(type->m_nameForRegister.c_str(), &callbacks);
294}
295
296
297BNLanguageRepresentationFunction* LanguageRepresentationFunctionType::CreateCallback(

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.80
AddRefForRegistrationMethod · 0.45

Tested by

no test coverage detected