Public Member Functions

SourceMod::INativeInterface Class Reference

Factory for dealing with native invocations. More...

#include <public/INativeInvoker.h>

Inherits SourceMod::SMInterface.

Collaboration diagram for SourceMod::INativeInterface:
Collaboration graph
[legend]

List of all members.

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.
virtual INativeInvoker * CreateInvoker ()=0
 Creates an object that can be used to invoke a single native code.

Detailed Description

Factory for dealing with native invocations.

Definition at line 84 of file INativeInvoker.h.


Member Function Documentation

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:
name Name, or NULL for anonymous.
bytes Number of bytes for memory (NINVOKE_DEFAULT_MEMORY recommended).
Returns:
New runtime, or NULL on failure.
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).

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