FMallocAnsi

ANSI C memory allocator.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/HAL/MallocAnsi.h

Include

#include "HAL/MallocAnsi.h"

Syntax

class FMallocAnsi : public FMalloc

Remarks

ANSI C memory allocator.

Constructors

Name Description

Public function

FMallocAnsi()

Constructor enabling low fragmentation heap on platforms supporting it.

Overridden from FMalloc

Name Description

Public function Virtual

void

 

Free

(
    void* Original
)

Free

Public function Virtual

bool

 

GetAllocationSize

(
    void* Original,
    SIZE_T& SizeOut
)

If possible determine the size of the memory allocated at the given address

Public function Virtual

const TCHAR ...

 

GetDescriptiveName()

Gets descriptive name for logging purposes.

Public function Virtual Const

bool

 

IsInternallyThreadSafe()

Returns if the allocator is guaranteed to be thread-safe and therefore doesn't need a unnecessary thread-safety wrapper around it.

Public function Virtual

void *

 

Malloc

(
    SIZE_T Count,
    uint32 Alignment
)

Malloc

Public function Virtual

void *

 

Realloc

(
    void* Original,
    SIZE_T Count,
    uint32 Alignment
)

Realloc

Public function Virtual

void *

 

TryMalloc

(
    SIZE_T Count,
    uint32 Alignment
)

TryMalloc - like Malloc(), but may return a nullptr result if the allocation request cannot be satisfied.

Public function Virtual

void *

 

TryRealloc

(
    void* Original,
    SIZE_T Count,
    uint32 Alignment
)

TryRealloc - like Realloc(), but may return a nullptr if the allocation request cannot be satisfied.

Public function Virtual

bool

 

ValidateHeap()

Validates the allocator's heap

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss