#include <kernel.h>
The SysAlloc class specifies an interface for allocating and freeing memory.
The BaseSystem maintains an instance of a class that implements the SysAlloc interface, which it makes available to all other Autodesk Navigation components. You can customize Autodesk Navigation memory management by writing your own implementation of the SysAlloc interface, and setting up the BaseSystem to use an instance of your custom class.
Inherits Kaim::SysAllocBase.
Inherited by Kaim::MagicSysAlloc, and Kaim::SysAllocBase_SingletonSupport< SysAllocMalloc, SysAlloc >.
Public Member Functions | |
virtual void * | Alloc (UPInt size, UPInt align)=0 |
Allocates a buffer of the specified size, with the specified alignment. More... | |
virtual void | Free (void *ptr, UPInt size, UPInt align)=0 |
Frees the specified memory buffer. More... | |
virtual void * | Realloc (void *oldPtr, UPInt oldSize, UPInt newSize, UPInt align)=0 |
Re-allocates a buffer to a new size. More... | |
|
pure virtual |
Allocates a buffer of the specified size, with the specified alignment.
size | The size of the requested buffer. |
align | The alignment requested for the buffer. |
Implemented in Kaim::SysAllocMalloc.
|
pure virtual |
Frees the specified memory buffer.
ptr | The address of the buffer to be freed. |
size | The size of the buffer to be freed. |
align | The alignment of the buffer. |
Implemented in Kaim::SysAllocMalloc.
|
pure virtual |
Re-allocates a buffer to a new size.
oldPtr | The current location of the buffer. |
oldSize | The current size of the buffer. |
newSize | The new desired size for the buffer. |
align | The alignment requested for the new buffer. |
Implemented in Kaim::SysAllocMalloc.