![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "Async/AsyncFileHandle.h"#include "BulkDataBuffer.h"#include "Containers/Array.h"#include "Containers/ContainerAllocationPolicies.h"#include "Containers/Map.h"#include "Containers/SortedMap.h"#include "Containers/StringView.h"#include "Containers/StringFwd.h"#include "Containers/UnrealString.h"#include "CoreMinimal.h"#include "CoreTypes.h"#include "GenericPlatform/GenericPlatformFile.h"#include "HAL/MemoryBase.h"#include "IO/IoChunkId.h"#include "IO/IoDispatcherPriority.h"#include "IO/PackageId.h"#include "Math/NumericLimits.h"#include "Misc/AssertionMacros.h"#include "Misc/CompressionFlags.h"#include "Misc/EnumClassFlags.h"#include "Misc/OptionalFwd.h"#include "Misc/PackagePath.h"#include "Misc/PackageSegment.h"#include "Serialization/Archive.h"#include "Serialization/BulkDataCookedIndex.h"#include "Serialization/CustomVersion.h"#include "Serialization/FileRegions.h"#include "Templates/Function.h"#include "Templates/IsPODType.h"#include "Templates/RefCounting.h"#include "Templates/UniquePtr.h"#include "Templates/PimplPtr.h"#include "UObject/NameTypes.h"Go to the source code of this file.
Classes | |
| class | IBulkDataIORequest |
| struct | FOwnedBulkDataPtr |
| struct | FBulkDataSerializationParams |
| class | FBulkData |
| class | TBulkData< ElementType > |
| class | FFormatContainer |
| class | FBulkDataRequest |
| class | FBulkDataRequest::IHandle |
| class | FBulkDataBatchRequest |
| class | FBulkDataBatchRequest::FBatchBuilder |
| class | FBulkDataBatchRequest::FScatterGatherBuilder |
Namespaces | |
| namespace | UE |
| namespace | UE::Serialization |
| namespace | UE::BulkData |
| namespace | UE::BulkData::Private |
Macros | |
| #define | USE_RUNTIME_BULKDATA 1 |
| #define | UE_KEEP_INLINE_RELOADING_CONSISTENT 0 |
Typedefs | |
| using | FIoFilenameHash = uint32 |
| typedef TFunction< void(bool bWasCancelled, IBulkDataIORequest *)> | FBulkDataIORequestCallBack |
| using | FByteBulkData = TBulkData< uint8 > |
| using | FWordBulkData = TBulkData< uint16 > |
| using | FIntBulkData = TBulkData< int32 > |
| using | FFloatBulkData = TBulkData< float > |
| using | FBulkDataBatchReadRequest = FBulkDataRequest |
Functions | |
| COREUOBJECT_API FIoFilenameHash | MakeIoFilenameHash (const FString &Filename) |
| COREUOBJECT_API FIoFilenameHash | MakeIoFilenameHash (const FPackagePath &Filename) |
| COREUOBJECT_API FIoFilenameHash | MakeIoFilenameHash (const FIoChunkId &ChunkID) |
| COREUOBJECT_API FStringBuilderBase & | LexToString (EBulkDataFlags Flags, FStringBuilderBase &Sb) |
| COREUOBJECT_API FString | LexToString (EBulkDataFlags Flags) |
| FArchive & | operator<< (FArchive &Ar, EBulkDataFlags &Flags) |
Variables | |
| const FIoFilenameHash | INVALID_IO_FILENAME_HASH = 0 |
| #define UE_KEEP_INLINE_RELOADING_CONSISTENT 0 |
| #define USE_RUNTIME_BULKDATA 1 |
Handle to a bulk data I/O batch read request.
Callback to use when making streaming requests
| using FByteBulkData = TBulkData<uint8> |
| using FFloatBulkData = TBulkData<float> |
| using FIntBulkData = TBulkData<int32> |
| using FIoFilenameHash = uint32 |
A loose hash value that can be created from either a filenames or a FIoChunkId
| using FWordBulkData = TBulkData<uint16> |
Flags serialized with the bulk data.
| Enumerator | |
|---|---|
| BULKDATA_None | Empty flag set. |
| BULKDATA_PayloadAtEndOfFile | Indicates that when the payload was saved/cooked as part of a package was stored at the end of the package file rather than inline. |
| BULKDATA_SerializeCompressedZLIB | If set, payload should be [un]compressed using ZLIB during serialization. |
| BULKDATA_ForceSingleElementSerialization | Force usage of SerializeElement over bulk serialization. |
| BULKDATA_SingleUse | When set the payload will be unloaded from memory after it has been accessed via Lock/::Unlock. Other forms of accessing the payload are unaffected by this flag. |
| UE_DEPRECATED | DEPRECATED Forces the payload to be always streamed, regardless of its size. |
| BULKDATA_ForceInlinePayload | Should be set before saing/cooking to force the internal payload to be stored inline |
| BULKDATA_SerializeCompressed |
|
| UE_DEPRECATED | DEPRECATED Forces the payload to be always streamed, regardless of its size. |
| BULKDATA_PayloadInSeparateFile | Set when the bulkdata saved/cooked as part of a package indicates that the payload is stored in its own file (.ubulk, .uptnl or .m.ubulk depending on other flags) |
| UE_DEPRECATED | DEPRECATED Forces the payload to be always streamed, regardless of its size. |
| UE_DEPRECATED | DEPRECATED Forces the payload to be always streamed, regardless of its size. |
| BULKDATA_Force_NOT_InlinePayload | Should be set before being cooked as part of a package to force the cooked payload to before stored at the end of the package file either than being inline |
| BULKDATA_OptionalPayload | During cooking, this flag indicates that the the payload is optional at runtime and should be stored in an .uptnl file, unless the payload is also set to be inline in which case this flag is ignored. This flag will be preserved during cooking and and at runtime and can be used to identify where the payload should be loaded from. |
| BULKDATA_MemoryMappedPayload | During cooking this flag indicates that the payload should work with memory mapping at runtime if the target cooking platform supports it so the payload should be stored in a .m.ubulk file, unless the payload is also set to be inline in which case this flag is ignored. This flag will be preserved during cooking and and at runtime and can be used to identify where the payload should be loaded from. |
| BULKDATA_Size64Bit | Set during serialization to indicate if the size and offset values were serialized as int64 types rather than the default int32 |
| BULKDATA_DuplicateNonOptionalPayload | During cooking this flag indicates that although the payload is NOT optional it should be stored in both the .ubulk file and the .uptnl file as duplicate non-optional data, unless the payload is also set to be inline in which case this flag is ignored. This flag will be preserved during cooking and and at runtime and can be used to identify where the payload should be loaded from. |
| UE_DEPRECATED | DEPRECATED Forces the payload to be always streamed, regardless of its size. |
| BULKDATA_NoOffsetFixUp | Set during saving and indicates that the payload offset value is correct and does not need adjusting via an additional offset stored in the FLinker (older legacy behavior) |
| BULKDATA_WorkspaceDomainPayload | INTERNAL SET ONLY - callers of bulkdata should not set this flag on the bulk data If set, payload is stored in the workspace domain version of the file. |
| BULKDATA_LazyLoadable | INTERNAL SET ONLY - callers of bulkdata should not set this flag on the bulk data If true, the BulkData can be loaded from its file at any time |
| BULKDATA_UsesIoDispatcher | Assigned at runtime to indicate that the BulkData should be using the IoDispatcher when loading, not filepaths. |
| BULKDATA_DataIsMemoryMapped | Assigned at runtime to indicate that the BulkData allocation is a memory mapped region of a file and not raw data. |
| UE_DEPRECATED | DEPRECATED Forces the payload to be always streamed, regardless of its size. |
| BULKDATA_AlwaysAllowDiscard | Assigned at runtime to indicate that the BulkData object should be considered for discard even if it cannot load from disk. |
| COREUOBJECT_API FString LexToString | ( | EBulkDataFlags | Flags | ) |
| COREUOBJECT_API FStringBuilderBase & LexToString | ( | EBulkDataFlags | Flags, |
| FStringBuilderBase & | Sb | ||
| ) |
| COREUOBJECT_API FIoFilenameHash MakeIoFilenameHash | ( | const FIoChunkId & | ChunkID | ) |
Helpers to create the hash from a chunk id. Returns IOFILENAMEHASH_NONE if and only if the chunk id is invalid.
| COREUOBJECT_API FIoFilenameHash MakeIoFilenameHash | ( | const FPackagePath & | Filename | ) |
Helpers to create the hash from a FPackagePath. Returns IOFILENAMEHASH_NONE if and only if the PackagePath is empty.
| COREUOBJECT_API FIoFilenameHash MakeIoFilenameHash | ( | const FString & | Filename | ) |
Helpers to create the hash from a filename. Returns IOFILENAMEHASH_NONE if and only if the filename is empty.
|
inline |
Allows FArchive to serialize EBulkDataFlags, this will not be required once EBulkDataFlags is promoted to be a enum class.
|
inline |