ForAnyElementType

Windows
MacOS
Linux

Inheritance Hierarchy

FMemoryImageAllocatorBase

TMemoryImageAllocator::ForAnyElementType

TMemoryImageAllocator::ForElementType

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Serialization/MemoryImage.h

Include

#include "Serialization/MemoryImage.h"

Syntax

class ForAnyElementType : public FMemoryImageAllocatorBase

Constructors

Name Description

Public function

ForAnyElementType()

Default constructor.

Functions

Name Description

Public function Const

int32

 

CalculateSlackGrow

(
    int32 NumElements,
    int32 NumAllocatedElements,
    int32 NumBytesPerElement
)

Public function Const

int32

 

CalculateSlackReserve

(
    int32 NumElements,
    int32 NumBytesPerElement
)

Public function Const

int32

 

CalculateSlackShrink

(
    int32 NumElements,
    int32 NumAllocatedElements,
    int32 NumBytesPerElement
)

Public function Const

SizeType

 

GetInitialCapacity()

Public function

void

 

ResizeAllocation

(
    int32 PreviousNumElements,
    int32 NumElements,
    SIZE_T NumBytesPerElement
)

Public function Const

void

 

WriteMemoryImage

(
    FMemoryImageWriter& Writer,
    const FTypeLayoutDesc& TypeDesc,
    int32 NumAllocatedElements
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss