cAudio 2.3.0
3d Audio Engine
Loading...
Searching...
No Matches
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
10namespace 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};
Interface for a class that allocates and frees memory used by cAudio.
Memory provider that wraps the standard memalloc and free.
virtual size_t getMaxAllocationSize()
Returns the largest possible single allocation that can be made.
virtual void Free(void *pointer)
Frees memory previously allocated.
virtual void * Allocate(size_t size, const char *filename, int line, const char *function)
Allocates memory and returns a pointer to it.
Main namespace for the entire cAudio library.
Definition: cAudioCapture.h:16