Files
src-1.2/external/3rd/library/platform/utils/Base/BlockAllocator.h
T

31 lines
406 B
C++

#if !defined (BLOCKALLOCATOR_H_)
#define BLOCKALLOCATOR_H_
#include <stdio.h>
#include <stdlib.h>
#ifdef EXTERNAL_DISTRO
namespace NAMESPACE
{
#endif
namespace Base
{
class BlockAllocator
{
public:
BlockAllocator();
~BlockAllocator();
void *getBlock(unsigned accum);
void returnBlock(unsigned *handle);
private:
uintptr_t *m_blocks[31];
};
};
#ifdef EXTERNAL_DISTRO
};
#endif
#endif