r8brain-free-src
High-quality pro audio sample rate converter library
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
r8b::CStdMemAllocator Class Reference

The default base class for objects that allocate blocks of memory. More...

#include <r8bbase.h>

Inheritance diagram for r8b::CStdMemAllocator:
r8b::CStdClassAllocator

Static Public Member Functions

static void * allocmem (const size_t Size)
 
static void freemem (void *const p)
 
static void * reallocmem (void *const p, const size_t Size)
 

Additional Inherited Members

- Public Member Functions inherited from r8b::CStdClassAllocator
void operator delete (void *const p)
 
void operator delete[] (void *const p)
 
void * operator new (const size_t n)
 
void * operator new (const size_t, void *const p)
 
void * operator new[] (const size_t n)
 

Detailed Description

The default base class for objects that allocate blocks of memory.

Memory buffer allocator that uses "stdlib" standard memory functions.

Member Function Documentation

◆ allocmem()

static void * r8b::CStdMemAllocator::allocmem ( const size_t  Size)
static

Function allocates memory block.

Parameters
SizeThe size of the block, in bytes.
Returns
The pointer to the allocated block.

◆ freemem()

static void r8b::CStdMemAllocator::freemem ( void *const  p)
static

Function frees a previously allocated memory block.

Parameters
pPointer to the allocated block, can be NULL.

◆ reallocmem()

static void * r8b::CStdMemAllocator::reallocmem ( void *const  p,
const size_t  Size 
)
static

Function reallocates a previously allocated memory block.

Parameters
pPointer to the allocated block, can be NULL.
SizeThe new size of the block, in bytes.
Returns
The pointer to the (re)allocated block.