JRTPLIB
3.11.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. More... | |
virtual void | FreeBuffer (void *buffer)=0 |
Frees the previously allocated memory block buffer . | |
|
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.