FMalloc::TryMalloc

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

Windows
MacOS
Linux

Override Hierarchy

FMalloc::TryMalloc()

FMallocAnsi::TryMalloc()

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 * TryMalloc
(
    SIZE_T Count,
    uint32 Alignment
)

Remarks

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

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