UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
uLang::CAllocatorInstance Class Reference

#include <Allocator.h>

+ Inheritance diagram for uLang::CAllocatorInstance:

Public Types

using FAllocate = void *(*)(const CAllocatorInstance *, size_t)
 
using FReallocate = void *(*)(const CAllocatorInstance *, void *, size_t)
 
using FDeallocate = void(*)(const CAllocatorInstance *, void *)
 

Public Member Functions

 CAllocatorInstance (FAllocate Allocate, FReallocate Reallocate, FDeallocate Deallocate)
 Use the memory address of this object to seed the observer id generator.
 
ULANG_FORCEINLINE voidAllocate (size_t NumBytes) const
 
ULANG_FORCEINLINE voidReallocate (void *Memory, size_t NumBytes) const
 
ULANG_FORCEINLINE void Deallocate (void *Memory) const
 
ULANG_FORCEINLINE EObserverId GenerateObserverId ()
 

Detailed Description

This allows smart pointers to free object memory they are holding on to Passing the allocator itself to the free function allows allocation from multiple instances of an allocator and returning memory to the appropriate instance it was allocated from

Member Typedef Documentation

◆ FAllocate

◆ FDeallocate

◆ FReallocate

Constructor & Destructor Documentation

◆ CAllocatorInstance()

uLang::CAllocatorInstance::CAllocatorInstance ( FAllocate  Allocate,
FReallocate  Reallocate,
FDeallocate  Deallocate 
)
inline

Use the memory address of this object to seed the observer id generator.

Member Function Documentation

◆ Allocate()

ULANG_FORCEINLINE void * uLang::CAllocatorInstance::Allocate ( size_t  NumBytes) const
inline

◆ Deallocate()

ULANG_FORCEINLINE void uLang::CAllocatorInstance::Deallocate ( void Memory) const
inline

◆ GenerateObserverId()

ULANG_FORCEINLINE EObserverId uLang::CAllocatorInstance::GenerateObserverId ( )
inline

◆ Reallocate()

ULANG_FORCEINLINE void * uLang::CAllocatorInstance::Reallocate ( void Memory,
size_t  NumBytes 
) const
inline

The documentation for this class was generated from the following file: