r8brain-free-src
High-quality pro audio sample rate converter library
 
Loading...
Searching...
No Matches
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)
 Allocates a memory block.
 
static void freemem (void *const p)
 Frees a previously allocated memory block.
 

Detailed Description

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

Memory buffer allocator that uses standard C++ "new" to allocate memory.

Member Function Documentation

◆ allocmem()

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

Allocates a 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

Frees a previously allocated memory block.

Parameters
pPointer to the allocated block, can be nullptr.