Flan
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:
Inheritance graph
[legend]
Collaboration diagram for r8b::CStdMemAllocator:
Collaboration graph
[legend]

Static Public Member Functions

static void * allocmem (const size_t Size)
 Function allocates memory block. More...
 
static void * reallocmem (void *p, const size_t Size)
 Function reallocates a previously allocated memory block. More...
 
static void freemem (void *p)
 Function frees a previously allocated memory block. More...
 

Additional Inherited Members

- Public Member Functions inherited from r8b::CStdClassAllocator
void * operator new (size_t, void *p)
 
void * operator new (size_t n)
 
void * operator new[] (size_t n)
 
void operator delete (void *p)
 Operator frees a previously allocated memory block for the object. More...
 
void operator delete[] (void *p)
 Operator frees a previously allocated memory block for the object. More...
 

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)
inlinestatic

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 *  p)
inlinestatic

Function frees a previously allocated memory block.

Parameters
pPointer to the allocated block, can be NULL.

◆ reallocmem()

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

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.

The documentation for this class was generated from the following file: