#include "Allocator.h" char *MallocAllocator::New(unsigned int size) { return new char[size]; } void MallocAllocator::Delete(char *mem) { delete[] mem; } /////////////////////////////////////////////////////////// RealtimeAllocator::RealtimeAllocator(unsigned int size) : m_Position(0), m_Size(size) { m_Buffer = new char[m_Size]; } void RealtimeAllocator::Reset() { m_Position=0; } char *RealtimeAllocator::New(unsigned int size) { //cerr<<"new "<m_Size) { cerr<<"out of realtime buffer mem, here we go!!! :("<