FPakOrderMap

Defines the order mapping for files within a pak.

Unreal Engine C++ API Reference > Developer > PakFileUtilities

References

   
Module PakFileUtilities
Header /Engine/Source/Developer/PakFileUtilities/Public/PakFileUtilities.h
Include #include "PakFileUtilities.h"

Syntax

class FPakOrderMap  

Remarks

Defines the order mapping for files within a pak. When read from the files present in the pak, Indexes will be [0,NumFiles). This is important for detecting gaps in the order between adjacent files in a patch .pak. For new files being added into the pak, the values can be arbitrary, and will be usable only for relative order in an output list. Due to the arbitrary values for new files, the FPakOrderMap can contain files with duplicate Order values.

Constructors

Type Name Description
  FPakOrderMap ()  

Functions

Type Name Description
void Add ( const FString& Filename, uint64 Index ) Add the given filename with the given Sorting Index
void AddOffset ( const FString& Filename, uint64 Offset ) Add the given filename with the given Offset interpreted as Offset in bytes in the Pak File.
void ConvertOffsetsToOrder () Remaps all the current values in the OrderMap onto [0, NumEntries).
void Empty ()  
uint64 GetFileOrder ( const FString& Path, bool bAllowUexpUBulkFallback, bool* OutIsPrimary )  
uint64 GetMaxIndex ()  
void MergeOrderMap ( FPakOrderMap&& Other ) Merge another order map into this one where the files are not already ordered by this map. Steals the strings and empties the other order map.
int32 Num ()  
bool ProcessOrderFile ( const TCHAR* ResponseFile, bool bSecondaryOrderFile, bool bMergeOrder, TOptional< uint64 > InOffset )  
void WriteOpenOrder ( FArchive* Ar )  

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library