FGenericPlatformMemory::PtrIsOSMalloc

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

Choose your operating system:

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