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

Function DSC_API_OBJECT_REF

view/sharedcache/core/refcountobject.h:183–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181 // Macro-like functions to manage referenced objects for the external API
182 template <class T>
183 static typename T::APIHandle DSC_API_OBJECT_REF(T* obj)
184 {
185 if (obj == nullptr)
186 return nullptr;
187 obj->AddAPIRef();
188 return obj->GetAPIObject();
189 }
190
191 template <class T>
192 static typename T::APIHandle DSC_API_OBJECT_REF(const DSCRef<T>& obj)

Callers 1

Calls 2

AddAPIRefMethod · 0.45
GetAPIObjectMethod · 0.45

Tested by

no test coverage detected