![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#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 void * | Allocate (size_t NumBytes) const |
| ULANG_FORCEINLINE void * | Reallocate (void *Memory, size_t NumBytes) const |
| ULANG_FORCEINLINE void | Deallocate (void *Memory) const |
| ULANG_FORCEINLINE EObserverId | GenerateObserverId () |
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
| using uLang::CAllocatorInstance::FAllocate = void * (*)(const CAllocatorInstance *, size_t) |
| using uLang::CAllocatorInstance::FDeallocate = void (*)(const CAllocatorInstance *, void *) |
| using uLang::CAllocatorInstance::FReallocate = void * (*)(const CAllocatorInstance *, void *, size_t) |
|
inline |
Use the memory address of this object to seed the observer id generator.
|
inline |
|
inline |
|
inline |
|
inline |