Memory provider that wraps the standard memalloc and free. More...
#include <cStandardMemoryProvider.h>


Public Member Functions | |
| virtual void * | Allocate (size_t size, const char *filename, int line, const char *function) |
| Allocates memory and returns a pointer to it. More... | |
| virtual void | Free (void *pointer) |
| Frees memory previously allocated. More... | |
| virtual size_t | getMaxAllocationSize () |
| Returns the largest possible single allocation that can be made. | |
Memory provider that wraps the standard memalloc and free.
Definition at line 13 of file cStandardMemoryProvider.h.
|
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. |
Implements cAudio::IMemoryProvider.
Definition at line 20 of file cStandardMemoryProvider.cpp.
|
virtual |
Frees memory previously allocated.
| pointer,: | Pointer to the memory location to free. |
Implements cAudio::IMemoryProvider.
Definition at line 29 of file cStandardMemoryProvider.cpp.
1.8.5