UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LargeMemoryReader.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "CoreTypes.h"
9#include "UObject/NameTypes.h"
10#include "UObject/UnrealNames.h"
11
13{
14 None = 0x0, // No Flags
15 TakeOwnership = 0x1, // Archive will take ownership of the passed-in memory and free it on destruction
16 Persistent = 0x2, // Archive will be set as persistent when constructed
17};
18
20
25{
26public:
27
29
30 CORE_API virtual void Serialize(void* OutData, int64 Num) override;
31
35 CORE_API virtual int64 TotalSize() override;
36
43 CORE_API virtual FString GetArchiveName() const override;
44
49
50private:
51
54 FLargeMemoryReader& operator=(const FLargeMemoryReader&) = delete;
55
57 const uint8 bFreeOnClose : 1;
58
60 const uint8* Data;
61
63 const int64 NumBytes;
64
66 const FName ArchiveName;
67};
68
FPlatformTypes::int64 int64
A 64-bit signed integer.
Definition Platform.h:1127
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define ENUM_CLASS_FLAGS(Enum)
Definition EnumClassFlags.h:6
ELargeMemoryReaderFlags
Definition LargeMemoryReader.h:13
@ Num
Definition MetalRHIPrivate.h:234
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition LargeMemoryReader.h:25
virtual CORE_API int64 TotalSize() override
Definition LargeMemoryReader.cpp:44
CORE_API ~FLargeMemoryReader()
Definition LargeMemoryReader.cpp:54
virtual CORE_API FString GetArchiveName() const override
Definition LargeMemoryReader.cpp:49
Definition MemoryArchive.h:15
Definition NameTypes.h:617