SourceMod SDK  1.7
SourceMod::IHandleTypeDispatch Class Referenceabstract

Hooks type-specific Handle operations. More...

#include <public/IHandleSys.h>

Public Member Functions

virtual unsigned int GetDispatchVersion ()
 
virtual void OnHandleDestroy (HandleType_t type, void *object)=0
 Called when destroying a handle. Must be implemented. More...
 
virtual bool GetHandleApproxSize (HandleType_t type, void *object, unsigned int *pSize)
 Called to get the size of a handle's memory usage in bytes. Implementation is optional. More...
 

Detailed Description

Hooks type-specific Handle operations.

Member Function Documentation

virtual unsigned int SourceMod::IHandleTypeDispatch::GetDispatchVersion ( )
inlinevirtual

Returns the Handle API version

virtual bool SourceMod::IHandleTypeDispatch::GetHandleApproxSize ( HandleType_t  type,
void *  object,
unsigned int *  pSize 
)
inlinevirtual

Called to get the size of a handle's memory usage in bytes. Implementation is optional.

Parameters
typeHandle type.
objectHandle internal object.
pSizePointer to store the approximate memory usage in bytes.
Returns
True on success, false if not implemented.
virtual void SourceMod::IHandleTypeDispatch::OnHandleDestroy ( HandleType_t  type,
void *  object 
)
pure virtual

Called when destroying a handle. Must be implemented.

Parameters
typeHandle type.
objectHandle internal object.

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