UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MacPlatformMemory.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3
4/*=============================================================================================
5 MacPlatformMemory.h: Mac platform memory functions
6==============================================================================================*/
7
8#pragma once
11
16{
21 {
23 int GetFileDescriptor() const { return Fd; }
24
26 bool NeedsToUnlinkRegion() const { return bCreatedThisRegion; }
27
30 , Fd(InFd)
31 , bCreatedThisRegion(bInCreatedThisRegion)
32 {}
33
34 protected:
35
37 int Fd;
38
41 };
42
43
44
45 //~ Begin FGenericPlatformMemory Interface
48 static FMalloc* BaseAllocator();
49
51
52 static CORE_API FSharedMemoryRegion * MapNamedSharedMemoryRegion(const FString& InName, bool bCreate, uint32 AccessMode, SIZE_T Size);
54 //~ End FGenericPlatformMemory Interface
55};
56
58
59
60
FPlatformTypes::SIZE_T SIZE_T
An unsigned integer the same size as a pointer, the same as UPTRINT.
Definition Platform.h:1150
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
FMacPlatformMemory FPlatformMemory
Definition MacPlatformMemory.h:57
uint32 Size
Definition VulkanMemory.cpp:4034
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition MemoryBase.h:99
Definition ApplePlatformMemory.h:92
static FPlatformMemoryStats GetStats()
Definition ApplePlatformMemory.cpp:416
static const FPlatformMemoryConstants & GetConstants()
Definition ApplePlatformMemory.cpp:471
static FMalloc * BaseAllocator()
Definition ApplePlatformMemory.cpp:361
Definition GenericPlatformMemory.h:87
EMemoryPressureStatus
Definition GenericPlatformMemory.h:155
Definition GenericPlatformMemory.h:293
static CORE_API FSharedMemoryRegion * MapNamedSharedMemoryRegion(const FString &Name, bool bCreate, uint32 AccessMode, SIZE_T Size)
Definition GenericPlatformMemory.cpp:545
static CORE_API bool UnmapNamedSharedMemoryRegion(FSharedMemoryRegion *MemoryRegion)
Definition GenericPlatformMemory.cpp:551
Definition MacPlatformMemory.h:21
int Fd
Definition MacPlatformMemory.h:37
int GetFileDescriptor() const
Definition MacPlatformMemory.h:23
bool NeedsToUnlinkRegion() const
Definition MacPlatformMemory.h:26
FMacSharedMemoryRegion(const FString &InName, uint32 InAccessMode, void *InAddress, SIZE_T InSize, int InFd, bool bInCreatedThisRegion)
Definition MacPlatformMemory.h:28
bool bCreatedThisRegion
Definition MacPlatformMemory.h:40
Definition MacPlatformMemory.h:16
static FGenericPlatformMemoryStats::EMemoryPressureStatus MemoryPressureStatus
Definition MacPlatformMemory.h:50
Definition AndroidPlatformMemory.h:15