XII Release 0.1.0
Loading...
Searching...
No Matches
xiiArchiveTOC Class Reference

Table-of-contents for a xiiArchive file. More...

#include <Archive.h>

Public Member Functions

xiiUInt32 FindEntry (xiiStringView sFile) const
 Returns the entry index for the given file or xiiInvalidIndex, if not found.
xiiUInt32 AddPathString (xiiStringView sPathString)
void RebuildPathToEntryHashes ()
xiiStringView GetEntryPathString (xiiUInt32 uiEntryIdx) const
xiiResult Serialize (xiiStreamWriter &ref_stream) const
xiiResult Deserialize (xiiStreamReader &ref_stream, xiiUInt8 uiArchiveVersion)

Public Attributes

xiiDynamicArray< xiiArchiveEntry > m_Entries
 all files stored in the xiiArchive
xiiHashTable< xiiArchiveStoredString, xiiUInt32 > m_PathToEntryIndex
 allows to map a hashed string to the index of the file entry for the file path
xiiDynamicArray< xiiUInt8 > m_AllPathStrings
 one large array holding all path strings for the file entries, to reduce allocations

Detailed Description

Table-of-contents for a xiiArchive file.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/Foundation/IO/Archive/Archive.h
  • /home/runner/work/XII/XII/Source/Engine/Foundation/IO/Archive/Implementation/Archive.cpp