Navigation
API > API/Runtime > API/Runtime/Core
Data storage for the large memory reader and writer.
| Name | FLargeMemoryData |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Serialization/LargeMemoryData.h |
| Include Path | #include "Serialization/LargeMemoryData.h" |
Syntax
class FLargeMemoryData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FLargeMemoryData
(
const int64 PreAllocateBytes |
Serialization/LargeMemoryData.h | ||
FLargeMemoryData
(
const FLargeMemoryData& |
Non-copyable | Serialization/LargeMemoryData.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FLargeMemoryData() |
Serialization/LargeMemoryData.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Data | uint8 * | Memory owned by this archive. Ownership can be released by calling ReleaseOwnership() | Serialization/LargeMemoryData.h | |
| MaxBytes | int64 | Number of bytes currently allocated for our data buffer | Serialization/LargeMemoryData.h | |
| NumBytes | int64 | Number of bytes currently written to our data buffer | Serialization/LargeMemoryData.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Append
(
void* InData, |
Append data at the given offset. | Serialization/LargeMemoryData.h | |
uint8 * GetData () |
Returns the written data. | Serialization/LargeMemoryData.h | |
const uint8 * GetData () |
Returns the written data. | Serialization/LargeMemoryData.h | |
int64 GetSize() |
Gets the size of the data written. | Serialization/LargeMemoryData.h | |
bool HasData() |
Check whether data is allocated or if the ownership was released. | Serialization/LargeMemoryData.h | |
bool Read
(
void* OutData, |
Read data at the given offset. Returns true if the data was read. | Serialization/LargeMemoryData.h | |
uint8 * ReleaseOwnership() |
Releases ownership of the written data. | Serialization/LargeMemoryData.h | |
void Reserve
(
int64 Size |
Serialization/LargeMemoryData.h | ||
bool Write
(
void* InData, |
Write data at the given offset. Returns true if the data was written. | Serialization/LargeMemoryData.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FLargeMemoryData & operator=
(
const FLargeMemoryData& |
Serialization/LargeMemoryData.h |