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. More... | |
char * | dup (const char *string) |
Duplicate NULL terminated string into allocated memory. More... | |
void * | dup (void *memory, size_t size) |
Duplicate existing memory block into allocated memory. More... | |
void * | zalloc (size_t size) |
Allocate memory from the pager heap. More... | |
Additional Inherited Members | |
![]() | |
virtual void * | _alloc (size_t size)=0 |
Protocol to allocate memory from the pager heap. More... | |
virtual void | fault (void) const |
Allocation failure handler. | |
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 103 of file protocols.h.