Interface for a class that allocates and frees memory used by cAudio. More...
#include <IMemoryProvider.h>

Public Member Functions | |
| virtual void * | Allocate (size_t size, const char *filename, int line, const char *function)=0 |
| Allocates memory and returns a pointer to it. More... | |
| virtual void | Free (void *pointer)=0 |
| Frees memory previously allocated. More... | |
| virtual size_t | getMaxAllocationSize ()=0 |
| Returns the largest possible single allocation that can be made. | |
Interface for a class that allocates and frees memory used by cAudio.
Definition at line 12 of file IMemoryProvider.h.
|
pure virtual |
Allocates memory and returns a pointer to it.
| size,: | Size of the memory chunk to allocate in bytes. |
| filename,: | Filename of the source file that this allocation took place in (in Debug) or NULL otherwise. |
| line,: | Line of the source file where this allocation took place (in Debug) or -1 otherwise. |
| function,: | Function that this allocation took place in (in Debug) or NULL otherwise. |
Implemented in cAudio::cStandardMemoryProvider.
|
pure virtual |
Frees memory previously allocated.
| pointer,: | Pointer to the memory location to free. |
Implemented in cAudio::cStandardMemoryProvider.
1.8.5