UCommon
|
A redirection base class for the memory protocol. More...
#include <protocols.h>
Public Member Functions | |
virtual void * | _alloc (size_t size) |
MemoryRedirect (MemoryProtocol *protocol) | |
![]() | |
void * | alloc (size_t size) |
Convenience function. | |
char * | dup (const char *string) |
Duplicate NULL terminated string into allocated memory. | |
void * | dup (void *memory, size_t size) |
Duplicate existing memory block into allocated memory. | |
void * | zalloc (size_t size) |
Allocate memory from the pager heap. |
Additional Inherited Members | |
![]() | |
virtual void * | _alloc (size_t size)=0 |
Protocol to allocate memory from the pager heap. |
A redirection base class for the memory protocol.
This is used because sometimes we choose a common memory pool to manage different objects.
Definition at line 96 of file protocols.h.