FUntypedBulkData::SetFlagsFromDiskWrittenValues

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.

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/Serialization/BulkData.h

Include

#include "Serialization/BulkData.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/Serialization/BulkData.cpp

Syntax

void SetFlagsFromDiskWrittenValues
(
    EBulkDataFlags InBulkDataFlags,
    int64 InBulkDataOffsetInFile,
    int64 InBulkDataSizeOnDisk,
    int64 LinkerSummaryBulkDataStartOffset
)

Remarks

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. But SerializeBulkData modifies those values when loading, so the in-memory values after loading from disk are not the same as the values on disk. This function handles running the same steps that SerializeBulkData does, but skips the deserialization of the BulkData.