UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UObjectAllocator.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================
4 UnObjAllocator.h: Unreal object allocation
5=============================================================================*/
6
7#pragma once
8
9#include "CoreMinimal.h"
10#include "HAL/PlatformMath.h"
12
13class UObjectBase;
14
16{
17public:
23 UE_DEPRECATED(5.5, "Permanent Object Pool is handled by the global instance of FLinearAllocator now")
25
29 UE_DEPRECATED(5.6, "BootMessage is obsolete now")
31
37
47
54};
55
58
61{
62public:
67
69 {
70 return reinterpret_cast<uint64>(Object) - Address < Size;
71 }
72
73private:
74 const uint64 Address;
75 const uint64 Size;
76};
OODEFFUNC typedef void(OODLE_CALLBACK t_fp_OodleCore_Plugin_Free)(void *ptr)
#define FORCEINLINE
Definition AndroidPlatform.h:140
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
FPlatformTypes::uint64 uint64
A 64-bit unsigned integer.
Definition Platform.h:1117
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
CORE_API FPersistentLinearAllocatorExtends GPersistentLinearAllocatorExtends
Definition LinearAllocator.cpp:6
COREUOBJECT_API FUObjectAllocator GUObjectAllocator
Definition UObjectAllocator.cpp:11
uint32 Size
Definition VulkanMemory.cpp:4034
Definition UObjectAllocator.h:61
FORCEINLINE FPermanentObjectPoolExtents(const FPersistentLinearAllocatorExtends &InAllocatorExtends=GPersistentLinearAllocatorExtends)
Definition UObjectAllocator.h:63
FORCEINLINE bool Contains(const UObjectBase *Object) const
Definition UObjectAllocator.h:68
Definition UObjectAllocator.h:16
void BootMessage()
Definition UObjectAllocator.h:30
COREUOBJECT_API void DisablePersistentAllocator()
Definition UObjectAllocator.cpp:20
COREUOBJECT_API void FreeUObject(UObjectBase *Object) const
Definition UObjectAllocator.cpp:57
void AllocatePermanentObjectPool(int32 InPermanentObjectPoolSize)
Definition UObjectAllocator.h:24
COREUOBJECT_API UObjectBase * AllocateUObject(int32 Size, int32 Alignment, bool bAllowPermanent)
Definition UObjectAllocator.cpp:34
Definition UObjectBase.h:59
Definition LinearAllocator.h:82