Navigation
API > API/Runtime > API/Runtime/Core
Struct used to hold common memory constants for all platforms. These values generally don't change over the life of the executable, except for memory hotplugging and the addition or removal of swap space.
| Name | FGenericPlatformMemoryConstants |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMemory.h |
| Include Path | #include "GenericPlatform/GenericPlatformMemory.h" |
Syntax
struct FGenericPlatformMemoryConstants
Derived Classes
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AddressLimit | uint64 | An estimate of the range of addresses expected to be returned by BinnedAllocFromOS(). | GenericPlatform/GenericPlatformMemory.h | |
| AddressStart | uint64 | Starting address for the available virtual address space. | GenericPlatform/GenericPlatformMemory.h | |
| BinnedAllocationGranularity | SIZE_T | This is the "allocation granularity" in Binned malloc terms, i.e. BinnedMalloc will allocate the memory in increments of this value. | GenericPlatform/GenericPlatformMemory.h | |
| BinnedPageSize | SIZE_T | The size of a "page" in Binned2 malloc terms, in bytes. | GenericPlatform/GenericPlatformMemory.h | |
| OsAllocationGranularity | SIZE_T | Some platforms have advantages if memory is allocated in chunks larger than PageSize (e.g. VirtualAlloc() seems to have 64KB granularity as of now). | GenericPlatform/GenericPlatformMemory.h | |
| PageSize | SIZE_T | The size of a physical page, in bytes. | GenericPlatform/GenericPlatformMemory.h | |
| TotalPhysical | uint64 | The amount of actual physical memory, in bytes. | GenericPlatform/GenericPlatformMemory.h | |
| TotalPhysicalGB | uint32 | Approximate physical RAM in GB; 1 on everything except PC. | GenericPlatform/GenericPlatformMemory.h | |
| TotalVirtual | uint64 | The amount of virtual memory, in bytes. | GenericPlatform/GenericPlatformMemory.h |