SourceMod SDK  1.7
IMemoryUtils.h
Go to the documentation of this file.
1 
30 #ifndef _INCLUDE_SOURCEMOD_INTERFACE_BINARYUTILS_H_
31 #define _INCLUDE_SOURCEMOD_INTERFACE_BINARYUTILS_H_
32 
33 #include <IShareSys.h>
34 
35 #define SMINTERFACE_MEMORYUTILS_NAME "IMemoryUtils"
36 #define SMINTERFACE_MEMORYUTILS_VERSION 2
37 
43 namespace SourceMod
44 {
45  class IMemoryUtils : public SMInterface
46  {
47  public:
48  const char *GetInterfaceName()
49  {
51  }
52  unsigned int GetInterfaceVersion()
53  {
54  return SMINTERFACE_MEMORYUTILS_VERSION;
55  }
56  public:
65  virtual void *FindPattern(const void *libPtr, const char *pattern, size_t len) =0;
66 
81  virtual void *ResolveSymbol(void *handle, const char *symbol) =0;
82  };
83 }
84 
85 #endif // _INCLUDE_SOURCEMOD_INTERFACE_MEMORYUTILS_H_
const char * GetInterfaceName()
Must return a string defining the interface's unique name.
Definition: IMemoryUtils.h:48
Defines the Share System, responsible for shared resources and dependencies.
Definition: IMemoryUtils.h:45
unsigned int GetInterfaceVersion()
Must return an integer defining the interface's version.
Definition: IMemoryUtils.h:52
Defines the base functionality required by a shared interface.
Definition: IShareSys.h:92
virtual void * ResolveSymbol(void *handle, const char *symbol)=0
Retrieves a symbol pointer from a dynamic library.
#define SMINTERFACE_MEMORYUTILS_NAME
Definition: IMemoryUtils.h:35
virtual void * FindPattern(const void *libPtr, const char *pattern, size_t len)=0
Searches for a pattern of bytes within the memory of a dynamic library.
Definition: IAdminSystem.h:63