SourceMod::IBinTools Class Reference

Binary tools interface. More...

#include <public/extensions/IBinTools.h>

Inherits SourceMod::SMInterface.

Inheritance diagram for SourceMod::IBinTools:

Inheritance graph
[legend]
Collaboration diagram for SourceMod::IBinTools:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual const char * GetInterfaceName ()
 Must return a string defining the interface's unique name.
virtual unsigned int GetInterfaceVersion ()
 Must return an integer defining the interface's version.
virtual ICallWrapperCreateCall (void *address, CallConvention cv, const PassInfo *retInfo, const PassInfo paramInfo[], unsigned int numParams)=0
 Creates a call decoder.
virtual ICallWrapperCreateVCall (unsigned int vtblIdx, unsigned int vtblOffs, unsigned int thisOffs, const PassInfo *retInfo, const PassInfo paramInfo[], unsigned int numParams)=0
 Creates a vtable call decoder.

Detailed Description

Binary tools interface.

Definition at line 258 of file IBinTools.h.


Member Function Documentation

virtual ICallWrapper* SourceMod::IBinTools::CreateCall ( void *  address,
CallConvention  cv,
const PassInfo retInfo,
const PassInfo  paramInfo[],
unsigned int  numParams 
) [pure virtual]

Creates a call decoder.

Note: CallConv_ThisCall requires an implicit first parameter of PassType_Basic / PASSFLAG_BYVAL / sizeof(void *). However, this should only be given to the Execute() function, and never listed in the paramInfo array.

Parameters:
address Address to use as a call.
cv Calling convention.
retInfo Return type information, or NULL for void.
paramInfo Array of parameters.
numParams Number of parameters in the array.
Returns:
A new ICallWrapper function.

virtual ICallWrapper* SourceMod::IBinTools::CreateVCall ( unsigned int  vtblIdx,
unsigned int  vtblOffs,
unsigned int  thisOffs,
const PassInfo retInfo,
const PassInfo  paramInfo[],
unsigned int  numParams 
) [pure virtual]

Creates a vtable call decoder.

Note: CallConv_ThisCall requires an implicit first parameter of PassType_Basic / PASSFLAG_BYVAL / sizeof(void *). However, this should only be given to the Execute() function, and never listed in the paramInfo array.

Parameters:
vtblIdx Index into the virtual table.
vtblOffs Offset of the virtual table.
thisOffs Offset of the this pointer of the virtual table.
retInfo Return type information, or NULL for void.
paramInfo Array of parameters.
numParams Number of parameters in the array.
Returns:
A new ICallWrapper function.


The documentation for this class was generated from the following file:
Generated on Thu Mar 5 14:05:25 2009 for SourceMod SDK by  doxygen 1.5.1