1 ///////////////////////////////////////////////////////////////////////////////
2 // $Source: x:/prj/tech/libsrc/lgalloc/RCS/pool.cpp $
4 // $Date: 1997/07/10 17:13:15 $
13 ///////////////////////////////////////////////////////////////////////////////
15 HPOOL LGAPI
PoolCreate(size_t size
)
17 return (HPOOL
)(new cPoolAllocator(size
));
20 ///////////////////////////////////////
22 void * LGAPI
PoolAlloc(HPOOL hPool
)
24 return ((cPoolAllocator
* )hPool
)->Alloc();
27 ///////////////////////////////////////
29 void LGAPI
PoolFree(HPOOL hPool
, void * pData
)
31 ((cPoolAllocator
*)hPool
)->Free(pData
);
34 ///////////////////////////////////////
36 void LGAPI
PoolDestroy(HPOOL hPool
)
38 delete ((cPoolAllocator
*)hPool
);
41 ///////////////////////////////////////////////////////////////////////////////