Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FUseSystemMallocForNew Class Reference

#include <MemoryBase.h>

+ Inheritance diagram for FUseSystemMallocForNew:

Public Member Functions

voidoperator new (size_t Size)
 
void operator delete (void *Ptr)
 
voidoperator new[] (size_t Size)
 
void operator delete[] (void *Ptr)
 

Detailed Description

Inherit from FUseSystemMallocForNew if you want your objects to be placed in memory alloced by the system malloc routines, bypassing GMalloc. This is e.g. used by FMalloc itself.

Definition at line 47 of file MemoryBase.h.

Member Function Documentation

◆ operator delete()

void FUseSystemMallocForNew::operator delete ( void * Ptr)

Overloaded delete operator using the system allocator

Parameters
PtrPointer to delete

◆ operator delete[]()

void FUseSystemMallocForNew::operator delete[] ( void * Ptr)

Overloaded array delete operator using the system allocator

Parameters
PtrPointer to delete

◆ operator new()

void * FUseSystemMallocForNew::operator new ( size_t Size)

Overloaded new operator using the system allocator.

Parameters
SizeAmount of memory to allocate (in bytes)
Returns
A pointer to a block of memory with size Size or nullptr

◆ operator new[]()

void * FUseSystemMallocForNew::operator new[] ( size_t Size)

Overloaded array new operator using the system allocator.

Parameters
SizeAmount of memory to allocate (in bytes)
Returns
A pointer to a block of memory with size Size or nullptr

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