mirror of
https://github.com/MinimaJack/JVM-plugin.git
synced 2025-02-21 07:56:05 +02:00
35 lines
967 B
C++
35 lines
967 B
C++
/*
|
|
* Warning!!!
|
|
* DO NOT ALTER THIS FILE!
|
|
*/
|
|
|
|
|
|
#ifndef __IMEMORY_MANAGER_H__
|
|
#define __IMEMORY_MANAGER_H__
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
/**
|
|
* The given class allocates and releases memory for a component
|
|
*/
|
|
/// Interface representing memory manager.
|
|
class IMemoryManager
|
|
{
|
|
public:
|
|
virtual ~IMemoryManager() {}
|
|
/// Allocates memory of specified size
|
|
/**
|
|
* @param pMemory - the double pointer to variable, that will hold newly
|
|
* allocated block of memory of NULL if allocation fails.
|
|
* @param ulCountByte - memory size
|
|
* @return the result of
|
|
*/
|
|
virtual bool ADDIN_API AllocMemory (void** pMemory, unsigned long ulCountByte) = 0;
|
|
/// Releases memory
|
|
/**
|
|
* @param pMemory - The double pointer to the memory block being released
|
|
*/
|
|
virtual void ADDIN_API FreeMemory (void** pMemory) = 0;
|
|
};
|
|
|
|
#endif //__IMEMORY_MANAGER_H__
|