8 #ifndef MBase_SimpleBuffer_h 9 #define MBase_SimpleBuffer_h 22 typedef std::pair<unsigned char*, int>
MemBlock;
23 typedef std::vector<MemBlock>
MemVec;
28 virtual
void Delete() throw();
33 virtual
bool Reserve(
size_t iSize);
38 virtual
void*
GetMem(
size_t iSize);
67 #endif // MBase_BufferImplementation_h Definition: BufferImplementation.h:19
#define Int64
Definition: BasicTypes.h:36
std::vector< MemBlock > MemVec
Definition: BufferImplementation.h:23
virtual unsigned Int32 GetAllocMemSize() const
virtual bool Reserve(size_t iSize)
virtual unsigned Int64 GetTotalMemSizeInBytes() const
#define Int32
Definition: BasicTypes.h:20
Definition: Allocator.h:47
virtual void SetTotalAllocatedSpaceLimit(Int64 iLimit)
virtual unsigned Int32 GetTotalMemSize() const
virtual void * GetMem(size_t iSize)
std::pair< unsigned char *, int > MemBlock
Definition: BufferImplementation.h:22
virtual unsigned Int64 GetAllocMemSizeInBytes() const