SourceMod SDK  1.7
SourceMod::INativeInterface Class Referenceabstract

Factory for dealing with native invocations. More...

#include <public/INativeInvoker.h>

Inheritance diagram for SourceMod::INativeInterface:
SourceMod::SMInterface

Public Member Functions

virtual SourcePawn::IPluginRuntime * CreateRuntime (const char *name, size_t bytes)=0
 Creates a virtual plugin. This can be used as an environment to invoke natives. More...
 
virtual INativeInvokerCreateInvoker ()=0
 Creates an object that can be used to invoke a single native code. More...
 
- Public Member Functions inherited from SourceMod::SMInterface
virtual unsigned int GetInterfaceVersion ()=0
 Must return an integer defining the interface's version.
 
virtual const char * GetInterfaceName ()=0
 Must return a string defining the interface's unique name.
 
virtual bool IsVersionCompatible (unsigned int version)
 Must return whether the requested version number is backwards compatible. Note: This can be overridden for breaking changes or custom versioning. More...
 

Detailed Description

Factory for dealing with native invocations.

Member Function Documentation

virtual INativeInvoker* SourceMod::INativeInterface::CreateInvoker ( )
pure virtual

Creates an object that can be used to invoke a single native code.

Returns
New native invoker (free with delete).
virtual SourcePawn::IPluginRuntime* SourceMod::INativeInterface::CreateRuntime ( const char *  name,
size_t  bytes 
)
pure virtual

Creates a virtual plugin. This can be used as an environment to invoke natives.

IPluginRuntime objects must be freed with the delete operator.

Parameters
nameName, or NULL for anonymous.
bytesNumber of bytes for memory (NINVOKE_DEFAULT_MEMORY recommended).
Returns
New runtime, or NULL on failure.

The documentation for this class was generated from the following file: