hudson::SmallMemoryPool Namespace Reference


Functions

void * allocate_n (size_t sz) attrib_malloc
void deallocate_n (void *v, size_t sz)


Function Documentation

void* hudson::SmallMemoryPool::allocate_n size_t  sz  ) 
 

Allocate an array of 'sz' bytes. This is not inlineable, but for small sizes is still faster than malloc/free.

void hudson::SmallMemoryPool::deallocate_n void *  v,
size_t  sz
 

Free an array of 'sz' bytes. This is not inlineable, but for small sizes is still faster than malloc/free. Note: it is NOT legal to pass in a null 'v'.


Generated on Thu Mar 27 19:04:16 2008 by  doxygen 1.4.6