4 #ifndef __KVMEMORYPOOL_H 
    5 #define __KVMEMORYPOOL_H 
    7 #include "KVMemoryChunk.h" 
#define ClassDef(name, id)
 
Memory handled by KVMemoryPool.
 
void * GetMemory(size_t bytes)
return pointer to memory of size 'bytes'
 
size_t fChunkSize
size of chunks in bytes
 
KVMemoryChunk * fLastChunkUsed
 
virtual ~KVMemoryPool()
Destructor.
 
KVMemoryChunk * fLast
first chunk in pool
 
KVMemoryPool(int nchunks, size_t bytes)
Create nchunks chunks each of size 'bytes'.
 
KVMemoryChunk * fFirst
first chunk in pool