Navigation
Unreal Engine C++ API Reference > Runtime > CoreUObject > Serialization
Inheritance Hierarchy
- FBulkData
- FLidarPointCloudOctree::FLidarPointCloudBulkData
- FUntypedBulkData
- TBulkData
- TQuantizedLightSampleBulkData
References
Module | CoreUObject |
Header | /Engine/Source/Runtime/CoreUObject/Public/Serialization/BulkData.h |
Include | #include "Serialization/BulkData.h" |
Syntax
class FBulkData
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FArchive * | AttachedAr | Archive associated with bulk data for serialization |
![]() |
FLinkerLoad * | Linker | Used to make sure the linker doesn't get garbage collected at runtime for things with attached archives |
![]() |
FSerializeBulkDataElements * | SerializeBulkDataElements | Custom bulk data serialization hook when using FUntypedBulkData. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FBulkData () |
Constructor, initializing all member variables. | |
![]() |
Copy constructor. Use the common routine to perform the copy. |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
~FBulkData () |
Virtual destructor, free'ing allocated memory. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | Test if it is possible to load the bulk data using a file reader, even when no archive is attached to the bulk data. | |
![]() ![]() |
bool | Returns true if the data can be loaded from disk. | |
![]() |
void | ClearBulkDataFlags
(
uint32 BulkDataFlagsToClear |
Clears the passed in bulk data flags. |
![]() ![]() |
void | ClearBulkDataFlagsOn
(
EBulkDataFlags& InOutAccumulator, |
Disable the given flags in the given accumulator variable. |
![]() ![]() |
FIoChunkId | Returns a FIoChunkId for the bulkdata payload, this will be invalid if the bulkdata is not stored in the IoStore | |
![]() ![]() |
IBulkDataIORequest * | CreateStreamingRequest
(
int64 OffsetInBulkData, |
Create an async read request for the bulk data. |
![]() ![]() |
IBulkDataIORequest * | CreateStreamingRequest
(
EAsyncIOPriorityAndFlags Priority, |
Create an async read request for the bulk data. |
![]() ![]() |
bool | DoesExist () |
Returns true if the data references a file that currently exists and can be referenced by the file system. |
![]() ![]() |
void | DumpBulkDataUsage
(
FOutputDevice& Log |
Dumps detailed information of bulk data usage. |
![]() |
void | Forces the bulk data to be resident in memory and detaches the archive. | |
![]() ![]() |
uint32 | Gets the current bulk data alignment. | |
![]() ![]() |
uint32 | Gets the current bulk data flags. | |
![]() ![]() |
int64 | Returns the offset into the file the bulk data is located at. | |
![]() ![]() |
int64 | Returns the size of the bulk data in bytes. | |
![]() ![]() |
int64 | Returns the size of the bulk data on disk. | |
![]() ![]() |
void | GetBulkDataVersions
(
FArchive& InlineArchive, |
Get the CustomVersions used in the file containing the BulkData payload. |
![]() |
void | GetCopy
(
void** Dest, |
Retrieves a copy of the bulk data. |
![]() ![]() |
FString | GetDebugName () |
Returns a string representing the bulk data for debugging purposes. |
![]() ![]() |
FName | GetDecompressionFormat
(
EBulkDataFlags InFlags |
Returns decompress method flags specified by the given bulk data flags. |
![]() ![]() |
FName | Returns flags usable to decompress the bulk data | |
![]() ![]() |
FIoFilenameHash | Returns the io filename hash associated with this bulk data. | |
![]() ![]() |
bool | HasFlags
(
EBulkDataFlags Flags, |
Returns whether all of the specified flags are set. |
![]() ![]() |
bool | Returns whether the bulk data asynchronous load has completed. | |
![]() ![]() |
bool | Returns whether the bulk data is currently loaded and resident in memory. | |
![]() ![]() |
bool | Returns whether this bulk data is memory mapped or not. | |
![]() ![]() |
bool | Returns whether this bulk data represents duplicate non-optional data or not | |
![]() ![]() |
bool | Returns whether this bulk data is stored in a PackageExternalResource rather than in a neighboring segment of its owner's PackagePath. | |
![]() ![]() |
bool | IsInlined () |
Returns whether this bulk data is currently stored inline or not |
![]() ![]() |
bool | Returns whether this bulk data is currently stored in it's own file or not | |
![]() ![]() |
bool | IsLocked () |
Checks if this bulk is locked |
![]() ![]() |
bool | IsOptional () |
Returns whether this bulk data represents optional data or not |
![]() ![]() |
bool | IsSingleUse () |
Returns whether to deallocate the bulk data after lock |
![]() ![]() |
bool | Returns whether the bulk data is stored compressed on disk. | |
![]() ![]() |
bool | IsUnlocked () |
Checks if this bulk is unlocked |
![]() ![]() |
bool | Returns whether this bulk data is accessed via the IoDispatcher or not. | |
![]() |
bool | Load the bulk data using a file reader. | |
![]() |
void * | Lock
(
uint32 LockFlags |
Locks the bulk data and returns a pointer to it. |
![]() ![]() |
const void * | LockReadOnly () |
Locks the bulk data and returns a read-only pointer to it. |
![]() ![]() |
IAsyncReadFileHandle * | Opens a new IAsyncReadFileHandle that references the file that the BulkData object represents. | |
![]() |
void * | Realloc
(
int64 ElementCount, |
Change size of locked bulk data. Only valid if locked via read-write lock. |
![]() |
void | Clears/removes any currently allocated data payload and resets element count to 0. | |
![]() |
void | ResetBulkDataFlags
(
uint32 BulkDataFlagsToSet |
Enable the given flags and disable all other flags. |
![]() |
void | Serialize function used to serialize this bulk data structure. | |
![]() |
void | SerializeBulkData
(
FArchive& Ar, |
Serialize just the bulk data portion to/ from the passed in memory. |
![]() |
void | SerializeBulkData
(
FArchive& Ar, |
|
![]() |
void | SetBulkDataFlags
(
uint32 BulkDataFlagsToSet |
Enables the given flags without affecting any previously set flags. |
![]() ![]() |
void | SetBulkDataFlagsOn
(
EBulkDataFlags& InOutAccumulator, |
Enable the given flags in the given accumulator variable. |
![]() |
void | SetFlagsFromDiskWrittenValues
(
EBulkDataFlags InBulkDataFlags, |
When saving BulkData, if we are overwriting the file we need to update the BulkData's (flags,offset,size) to be able to load from the new file. |
![]() |
FOwnedBulkDataPtr * | ||
![]() |
void | StoreCompressedOnDisk
(
FName CompressionFormat |
Sets whether we should store the data compressed on disk. |
![]() |
bool | Deallocates bulk data without detaching the archive, so that further bulk data accesses require a reload. | |
![]() ![]() |
void | Unlock () |
Unlocks bulk data after which point the pointer returned by Lock no longer is valid. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
FBulkData & | Copies the source array into this one after detaching from archive. |
Typedefs
Name | Description |
---|---|
BulkDataRangeArray | |
FSerializeBulkDataElements |
Constants
Name | Description |
---|---|
MaxBulkDataSize |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
IBulkDataIORequest * | CreateStreamingRequestForRange
(
const BulkDataRangeArray& RangeArray, |
Use FBulkDataRequest instead |
![]() ![]() |
FCustomVersionContainer | GetCustomVersions
(
FArchive& InlineArchive |
Call GetBulkDataVersions instead. |
![]() ![]() |
const FPackagePath & | Deprecated, no replacement | |
![]() ![]() |
EPackageSegment | Deprecated, no replacement | |
![]() ![]() |
bool | The feature is being removed, it is assumed that all bulkdata is available for use | |
![]() |
void | SetBulkDataAlignment
(
uint16 BulkDataAlignmentToSet |
Bulk Data will always use default alignment |
![]() |
bool | Use FBulkDataRequest or CreateStreamingRequest instead |