jrtplib 3.7.1
|
A memory manager. More...
#include <rtpmemorymanager.h>
Public Member Functions | |
virtual void * | AllocateBuffer (size_t numbytes, int memtype)=0 |
Called to allocate numbytes of memory. | |
virtual void | FreeBuffer (void *buffer)=0 |
Frees the previously allocated memory block buffer . |
virtual void* RTPMemoryManager::AllocateBuffer | ( | size_t | numbytes, |
int | memtype | ||
) | [pure virtual] |
Called to allocate numbytes
of memory. The memtype
parameter indicates what the purpose of the memory block is. Relevant values can be found in rtpmemorymanager.h . Note that the types starting with RTPMEM_TYPE_CLASS
indicate fixed size buffers and that types starting with RTPMEM_TYPE_BUFFER
indicate variable size buffers.