![]() TGE Version 1.5.2 | ||||||||||||||||||||||||
| ||||||||||||||||||||||||
FrameAllocatorMarker Class Reference#include <frameAllocator.h>
Detailed DescriptionHelper class to deal with FrameAllocator usage.The purpose of this class is to make it simpler and more reliable to use the FrameAllocator. Simply use it like this:
FrameAllocatorMarker mem; char *buff = (char*)mem.alloc(100); When you leave the scope you defined the FrameAllocatorMarker in, it will automatically restore the watermark on the FrameAllocator. In situations with complex branches, this can be a significant headache remover, as you don't have to remember to reset the FrameAllocator on every posssible branch.
Constructor & Destructor Documentation
Member Function Documentation
Field Documentation
|