FMalloc::TryRealloc

TryRealloc - like [Realloc()](API\Runtime\Core\HAL\FMalloc\Realloc), but may return a nullptr if the allocation request cannot be satisfied.

Windows
MacOS
Linux

Override Hierarchy

FMalloc::TryRealloc()

FMallocAnsi::TryRealloc()

References

Module

Core

Header

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

Include

#include "HAL/MemoryBase.h"

Source

/Engine/Source/Runtime/Core/Private/HAL/MemoryBase.cpp

Syntax

virtual void * TryRealloc
(
    void * Original,
    SIZE_T Count,
    uint32 Alignment
)

Remarks

TryRealloc - like Realloc(), but may return a nullptr if the allocation request cannot be satisfied. Note that in this case the memory pointed to by Original will still be valid

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