gwnavgeneration/common/growingsmallbuffer.h Source File
Go to the documentation of this file.
9 #ifndef GwNavGen_GrowingSmallBufferPool_H
10 #define GwNavGen_GrowingSmallBufferPool_H
21 class GrowingSmallBufferPool
25 explicit GrowingSmallBufferPool(MemoryHeap* heap,
KyUInt32 byteCountInChunk = 0);
27 ~GrowingSmallBufferPool();
31 void* GetNewBuffer(
KyUInt32 byteCount);
37 KyUInt32 ByteCountAllocated()
const {
return m_byteCountAllocated; }
42 KyArrayTLS_POD<KyUInt32*> m_chunks;
46 KyArrayTLS_POD<KyUInt32*> m_oversizedBuffers;
53 KY_INLINE
KyUInt32 GrowingSmallBufferPool::GetWordCount(
KyInt32 byteCount)
int KyInt32
Type used internally to represent a 32-bit integer.
Definition: types.h:35
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36