rcAlloc

Allocates a memory block.

Windows
MacOS
Linux

References

Module

Navmesh

Header

/Engine/Source/Runtime/Navmesh/Public/Recast/RecastAlloc.h

Include

#include "Recast/RecastAlloc.h"

Source

/Engine/Source/Runtime/Navmesh/Private/Recast/RecastAlloc.cpp

Syntax

void * rcAlloc
(
    int size,
    rcAllocHint hint
)

Remarks

Allocates a memory block.

Returns

A pointer to the beginning of the allocated memory block, or null if the allocation failed.

Parameters

Parameter

Description

size

The size, in bytes of memory, to allocate.

hint

A hint to the allocator on how long the memory is expected to be in use.

See Also

rcFree

rcAllocSetCustom

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