Navigation
API > API/Runtime > API/Runtime/Core
Archive for storing a large amount of arbitrary data to memory
| Name | FLargeMemoryWriter |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Serialization/LargeMemoryWriter.h |
| Include Path | #include "Serialization/LargeMemoryWriter.h" |
Syntax
class FLargeMemoryWriter : public FMemoryArchive
Inheritance Hierarchy
- FArchiveState → FArchive → FMemoryArchive → FLargeMemoryWriter
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FLargeMemoryWriter
(
const FLargeMemoryWriter& |
Non-copyable | Serialization/LargeMemoryWriter.h | |
FLargeMemoryWriter
(
const int64 PreAllocateBytes, |
Serialization/LargeMemoryWriter.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FLargeMemoryWriter() |
Serialization/LargeMemoryWriter.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ArchiveName | const FString | Archive name, used for debugging, by default set to NAME_None. | Serialization/LargeMemoryWriter.h | |
| Data | FLargeMemoryData | Serialization/LargeMemoryWriter.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint8 * GetData() |
Returns the written data. To release this archive's ownership of the data, call ReleaseOwnership() | Serialization/LargeMemoryWriter.h | |
FMemoryView GetView () |
Returns a view on the written data | Serialization/LargeMemoryWriter.h | |
uint8 * ReleaseOwnership () |
Releases ownership of the written data | Serialization/LargeMemoryWriter.h | |
void Reserve
(
int64 Size |
Reserves memory such that the writer can contain at least Size number of bytes. | Serialization/LargeMemoryWriter.h |
Overridden from FArchive
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Serialize
(
void* InData, |
Serialization/LargeMemoryWriter.h |
Overridden from FArchiveState
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FString GetArchiveName () |
Returns the name of the Archive. | Serialization/LargeMemoryWriter.h | |
virtual int64 TotalSize() |
Gets the total size of the data written | Serialization/LargeMemoryWriter.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FLargeMemoryWriter & operator=
(
const FLargeMemoryWriter& |
Serialization/LargeMemoryWriter.h |