AudRecordLib
|
Implements memory management, and the default function used if no user defined one have been specified. More...
Classes | |
struct | StraightHeapAlloc< Type > |
struct | StraightHeapAlloc< Type >::rebind< Other > |
Typedefs | |
typedef std::set< PrefixData *, std::less< PrefixData * > , StraightHeapAlloc < PrefixData * > > | AllocList |
Functions | |
struct | __declspec (align(16)) PrefixData |
void | DisplayOutstandingAllocs () |
void *__cdecl | operator new (size_t bytes) |
void *__cdecl | operator new[] (size_t bytes) |
void __cdecl | operator delete (void *ptr) |
void __cdecl | operator delete[] (void *ptr) |
PVOID | SetAllocFreeFunctionsInternal (pfnAlloc allocFn, pfnFree freeFn, PVOID pData) |
BOOL | InitialiseAlloc (HMODULE) |
void | UninitialiseAlloc (HMODULE) |
Implements memory management, and the default function used if no user defined one have been specified.
typedef std::set<PrefixData*, std::less<PrefixData*>, StraightHeapAlloc<PrefixData*> > AllocList |
Set of allocation pointers typedeffed for clarity
struct __declspec | ( | align(16) | ) | [read] |
Data added to the start of each allocation
This ensures that data allocated by one allocator will be freed by it's partner free, even if the global pointers are changed between the alloc and free
Function to free the allocation
The user data at the time of allocation
The stack at the time of allocation
void DisplayOutstandingAllocs | ( | ) |
Displays any unfreed allocations allong with their stack trace via both the ETW debug stream and OutputDebugString
BOOL InitialiseAlloc | ( | HMODULE | hModule | ) |
Initialises the allocation part of AudRecordLib
hModule | The HMODULE of the AudRecord dll, unused |
void __cdecl operator delete | ( | void * | ptr | ) |
Overloaded object deleter that frees either with free or with the user defined deleter
void __cdecl operator delete[] | ( | void * | ptr | ) |
Overloaded object array deleter that frees either with free or with the user defined deleter
void* __cdecl operator new | ( | size_t | bytes | ) |
Custom object allocator that allocates either with malloc or with the user defined allocator
void* __cdecl operator new[] | ( | size_t | bytes | ) |
Custom array allocator that allocates either with malloc or with the user defined allocator
Overrides the default or previous alloc and free functions with user defined versions
allocFn | The allocation function |
freeFn | The free function |
pData | The user data to pass to the functions |
void UninitialiseAlloc | ( | HMODULE | hModule | ) |
Destroys the allocation info part of AudRecordLib
hModule | The HMODULE of the AudRecord dll, unused |