FGenericPlatformMemory::PtrIsOSMalloc

Was this pointer allocated by the OS malloc? Currently only Apple platforms implement this to detect small block allocations.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMemory.h

Include

#include "GenericPlatform/GenericPlatformMemory.h"

Syntax

static bool PtrIsOSMalloc
(
    void * Ptr
)

Remarks

Was this pointer allocated by the OS malloc? Currently only Apple platforms implement this to detect small block allocations.

Returns

True if this pointer was allocated by the OS.

Parameters

Parameter

Description

The

pointer to query

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