RavEngine
Loading...
Searching...
No Matches
physx::CVariableMemoryPool Class Reference

#include <SnXmlMemoryPool.h>

Public Member Functions

 CVariableMemoryPool (PxProfileAllocatorWrapper &inWrapper, PxU32 inMinAllocationSize=0x20)
 
PxU8 * MarkMem (PxU8 *inMem, TMemAllocSizeType inSize)
 
PxU8 * allocate (PxU32 size)
 
void deallocate (PxU8 *inData)
 
void CheckFreeListInvariant (SVariableMemPoolNode *inNode)
 
void AddFreeMem (PxU8 *inMemory, TMemAllocSizeType inSize)
 

Detailed Description

Manages variable sized allocations.
Keeps track of freed allocations in a insertion sorted list. Allocating new memory traverses the list linearly. This object will split nodes if the node is more than twice as large as the request memory allocation.


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