UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FOSAllocationDescriptor Struct Reference

Public Types

enum  MagicType : uint64 { Marker = 0xd0c233ccf493dfb0 , Marker = 0xd0c233ccf493dfb0 }
 
enum class  MagicType : uint64 { Marker = 0xd0c233ccf493dfb0 , Marker = 0xd0c233ccf493dfb0 }
 

Public Attributes

MagicType Magic
 
voidPointerToUnmap
 
SIZE_T SizeToUnmap
 
SIZE_T OriginalSizeAsPassed
 

Detailed Description

This structure is stored in the page after each OS allocation and checks that its properties are valid on Free. Should be less than the page size (4096 on all platforms we support)

Member Enumeration Documentation

◆ MagicType [1/2]

Enumerator
Marker 
Marker 

◆ MagicType [2/2]

Enumerator
Marker 
Marker 

Member Data Documentation

◆ Magic

MagicType FOSAllocationDescriptor::Magic

Magic that makes sure that we are not passed a pointer somewhere into the middle of the allocation (and/or the structure wasn't stomped).

◆ OriginalSizeAsPassed

SIZE_T FOSAllocationDescriptor::OriginalSizeAsPassed

Debug info that makes sure that the correct size is preserved.

◆ PointerToUnmap

void * FOSAllocationDescriptor::PointerToUnmap

This should include the descriptor itself.

◆ SizeToUnmap

SIZE_T FOSAllocationDescriptor::SizeToUnmap

This should include the total size of allocation, so after unmapping it everything is gone, including the descriptor


The documentation for this struct was generated from the following files: