MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / queryInterface

Method queryInterface

Libraries/Plugin/Plugin.h:274–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272 /// @return true if the plugin is loaded and the requested interface is implemented by the plugin itself
273 template <typename T>
274 [[nodiscard]] bool queryInterface(T*& outInterface) const
275 {
276 if (pluginQueryInterface and instance != nullptr)
277 {
278 return pluginQueryInterface(instance, T::InterfaceHash, reinterpret_cast<void**>(&outInterface));
279 }
280 return false;
281 }
282
283 PluginDynamicLibrary();
284

Callers 5

PluginTestMethod · 0.80
loadMethod · 0.80
closeMethod · 0.80
loadMethod · 0.80
drawBodyMethod · 0.80

Calls

no outgoing calls

Tested by 2

PluginTestMethod · 0.64
loadMethod · 0.64