ucommon
Public Member Functions
ucommon::MemoryRedirect Class Reference

A redirection base class for the memory protocol. More...

#include <protocols.h>

Inheritance diagram for ucommon::MemoryRedirect:
Inheritance graph
[legend]

Public Member Functions

virtual void * _alloc (size_t size)
 
 MemoryRedirect (MemoryProtocol *protocol)
 
- Public Member Functions inherited from ucommon::MemoryProtocol
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

- Protected Member Functions inherited from ucommon::MemoryProtocol
virtual void * _alloc (size_t size)=0
 Protocol to allocate memory from the pager heap. More...
 
virtual void fault (void) const
 Allocation failure handler.
 

Detailed Description

A redirection base class for the memory protocol.

This is used because sometimes we choose a common memory pool to manage different objects.

Author
David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org

Definition at line 103 of file protocols.h.


The documentation for this class was generated from the following file: