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
9
#include "
GenericPlatform/GenericPlatformMemory.h
"
10
#include "
Apple/ApplePlatformMemory.h
"
11
15
struct
CORE_API
FMacPlatformMemory
:
public
FApplePlatformMemory
16
{
20
struct
FMacSharedMemoryRegion
:
public
FSharedMemoryRegion
21
{
23
int
GetFileDescriptor
()
const
{
return
Fd; }
24
26
bool
NeedsToUnlinkRegion
()
const
{
return
bCreatedThisRegion; }
27
28
FMacSharedMemoryRegion
(
const
FString& InName,
uint32
InAccessMode
,
void
*
InAddress
,
SIZE_T
InSize
,
int
InFd
,
bool
bInCreatedThisRegion
)
29
:
FSharedMemoryRegion
(InName,
InAccessMode
,
InAddress
,
InSize
)
30
, Fd(
InFd
)
31
, bCreatedThisRegion(
bInCreatedThisRegion
)
32
{}
33
34
protected
:
35
37
int
Fd
;
38
40
bool
bCreatedThisRegion
;
41
};
42
43
44
45
//~ Begin FGenericPlatformMemory Interface
46
static
FPlatformMemoryStats
GetStats
();
47
static
const
FPlatformMemoryConstants
&
GetConstants
();
48
static
FMalloc
*
BaseAllocator
();
49
50
static
FGenericPlatformMemoryStats::EMemoryPressureStatus
MemoryPressureStatus
;
51
52
static
CORE_API
FSharedMemoryRegion
*
MapNamedSharedMemoryRegion
(
const
FString& InName,
bool
bCreate
,
uint32
AccessMode,
SIZE_T
Size
);
53
static
CORE_API
bool
UnmapNamedSharedMemoryRegion
(
FSharedMemoryRegion
*
MemoryRegion
);
54
//~ End FGenericPlatformMemory Interface
55
};
56
57
typedef
FMacPlatformMemory
FPlatformMemory
;
58
59
60
ApplePlatformMemory.h
SIZE_T
FPlatformTypes::SIZE_T SIZE_T
An unsigned integer the same size as a pointer, the same as UPTRINT.
Definition
Platform.h:1150
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
GenericPlatformMemory.h
FPlatformMemory
FMacPlatformMemory FPlatformMemory
Definition
MacPlatformMemory.h:57
Size
uint32 Size
Definition
VulkanMemory.cpp:4034
uint32
uint32_t uint32
Definition
binka_ue_file_header.h:6
FMalloc
Definition
MemoryBase.h:99
FApplePlatformMemory
Definition
ApplePlatformMemory.h:92
FApplePlatformMemory::GetStats
static FPlatformMemoryStats GetStats()
Definition
ApplePlatformMemory.cpp:416
FApplePlatformMemory::GetConstants
static const FPlatformMemoryConstants & GetConstants()
Definition
ApplePlatformMemory.cpp:471
FApplePlatformMemory::BaseAllocator
static FMalloc * BaseAllocator()
Definition
ApplePlatformMemory.cpp:361
FGenericPlatformMemoryConstants
Definition
GenericPlatformMemory.h:87
FGenericPlatformMemoryStats::EMemoryPressureStatus
EMemoryPressureStatus
Definition
GenericPlatformMemory.h:155
FGenericPlatformMemory::FSharedMemoryRegion
Definition
GenericPlatformMemory.h:293
FGenericPlatformMemory::MapNamedSharedMemoryRegion
static CORE_API FSharedMemoryRegion * MapNamedSharedMemoryRegion(const FString &Name, bool bCreate, uint32 AccessMode, SIZE_T Size)
Definition
GenericPlatformMemory.cpp:545
FGenericPlatformMemory::UnmapNamedSharedMemoryRegion
static CORE_API bool UnmapNamedSharedMemoryRegion(FSharedMemoryRegion *MemoryRegion)
Definition
GenericPlatformMemory.cpp:551
FMacPlatformMemory::FMacSharedMemoryRegion
Definition
MacPlatformMemory.h:21
FMacPlatformMemory::FMacSharedMemoryRegion::Fd
int Fd
Definition
MacPlatformMemory.h:37
FMacPlatformMemory::FMacSharedMemoryRegion::GetFileDescriptor
int GetFileDescriptor() const
Definition
MacPlatformMemory.h:23
FMacPlatformMemory::FMacSharedMemoryRegion::NeedsToUnlinkRegion
bool NeedsToUnlinkRegion() const
Definition
MacPlatformMemory.h:26
FMacPlatformMemory::FMacSharedMemoryRegion::FMacSharedMemoryRegion
FMacSharedMemoryRegion(const FString &InName, uint32 InAccessMode, void *InAddress, SIZE_T InSize, int InFd, bool bInCreatedThisRegion)
Definition
MacPlatformMemory.h:28
FMacPlatformMemory::FMacSharedMemoryRegion::bCreatedThisRegion
bool bCreatedThisRegion
Definition
MacPlatformMemory.h:40
FMacPlatformMemory
Definition
MacPlatformMemory.h:16
FMacPlatformMemory::MemoryPressureStatus
static FGenericPlatformMemoryStats::EMemoryPressureStatus MemoryPressureStatus
Definition
MacPlatformMemory.h:50
FPlatformMemoryStats
Definition
AndroidPlatformMemory.h:15
Engine
Source
Runtime
Core
Public
Mac
MacPlatformMemory.h
Generated by
1.9.8