| HDK
    | 
#include <UT_SmallAlloc.h>
| Public Member Functions | |
| UT_SmallAlloc (size_t page_size=1024) | |
| ~UT_SmallAlloc () | |
| template<typename T > | |
| T * | allocArray (exint size) | 
| const char * | allocString (const char *str) | 
| void * | alloc (size_t bytes) | 
| void | clear () | 
| int64 | getMemoryUsage () const | 
UT_SmallAlloc manages the allocation of small (and possibly variable sized) blocks of memory. Memory is stored in pages of a specified size with one wasted pointer at the beginning of the block storing a link to the next page. Memory is deallocated on destruction.
Definition at line 24 of file UT_SmallAlloc.h.
| UT_SmallAlloc::UT_SmallAlloc | ( | size_t | page_size = 1024 | ) | 
| UT_SmallAlloc::~UT_SmallAlloc | ( | ) | 
| void* UT_SmallAlloc::alloc | ( | size_t | bytes | ) | 
Definition at line 33 of file UT_SmallAlloc.h.
| 
 | inline | 
Definition at line 37 of file UT_SmallAlloc.h.
| void UT_SmallAlloc::clear | ( | ) | 
| 
 | inline | 
Definition at line 50 of file UT_SmallAlloc.h.