cAudio  2.3.0
3d Audio Engine
 All Classes Namespaces Functions Variables Enumerations Pages
cStandardMemoryProvider.h
1 // Copyright (c) 2008-2011 Raynaldo (Wildicv) Rivera, Joshua (Dark_Kilauea) Jones, Murat (wolfmanfx) Sari
2 // This file is part of the "cAudio Engine"
3 // For conditions of distribution and use, see copyright notice in cAudio.h
4 
5 #pragma once
6 
7 #include "IMemoryProvider.h"
8 #include <cstring>
9 
10 namespace cAudio
11 {
14  {
15  public:
16  virtual void* Allocate(size_t size, const char* filename, int line, const char* function);
17  virtual void Free(void* pointer);
18  virtual size_t getMaxAllocationSize();
19  };
20 };
virtual void Free(void *pointer)
Frees memory previously allocated.
virtual size_t getMaxAllocationSize()
Returns the largest possible single allocation that can be made.
Interface for a class that allocates and frees memory used by cAudio.
virtual void * Allocate(size_t size, const char *filename, int line, const char *function)
Allocates memory and returns a pointer to it.
Memory provider that wraps the standard memalloc and free.