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

Method Register

transform.cpp:131–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129
130
131void Transform::Register(Transform* xform)
132{
133 BNCustomTransform callbacks;
134 callbacks.context = xform;
135 callbacks.getParameters = GetParametersCallback;
136 callbacks.freeParameters = FreeParametersCallback;
137 callbacks.decode = DecodeCallback;
138 callbacks.encode = EncodeCallback;
139 xform->AddRefForRegistration();
140 xform->m_object = BNRegisterTransformType(xform->m_typeForRegister, xform->m_nameForRegister.c_str(),
141 xform->m_longNameForRegister.c_str(), xform->m_groupForRegister.c_str(), &callbacks);
142}
143
144
145Ref<Transform> Transform::GetByName(const string& name)

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.80
AddRefForRegistrationMethod · 0.45

Tested by

no test coverage detected