The Nebula Device 3: Base::ResourceAllocator Class Reference

The Nebula Device 3

Base::ResourceAllocator Class Reference

#include <resourceallocator.h>


Detailed Description

Base class of platform-specific resource allocators. A resource allocator provides custom memory allocation from a fixed area of platform specific resource memory. This is the base of a streaming resource management system where resource are streamed in and out of a fixed memory area. The resource manager is free to move the allocated memory blocks around (the addresses in the lumps will be adjusted accordingly and the lump will be notified).

NOTE: The ResourceAllocator system performs some operations per-block, thus it's good practice to choose fewer big blocks, instead of many small blocks!

(C) 2008 Radon Labs GmbH