Plasma Engine  2.0
Loading...
Searching...
No Matches
plArchiveTOC Class Reference

Table-of-contents for an plArchive file. More...

#include <Archive.h>

Public Member Functions

plUInt32 FindEntry (plStringView sFile) const
 Returns the entry index for the given file or plInvalidIndex, if not found.
 
plUInt32 AddPathString (plStringView sPathString)
 
void RebuildPathToEntryHashes ()
 
plStringView GetEntryPathString (plUInt32 uiEntryIdx) const
 
plResult Serialize (plStreamWriter &inout_stream) const
 
plResult Deserialize (plStreamReader &inout_stream, plUInt8 uiArchiveVersion)
 

Public Attributes

plDynamicArray< plArchiveEntrym_Entries
 all files stored in the plArchive
 
plHashTable< plArchiveStoredString, plUInt32 > m_PathToEntryIndex
 allows to map a hashed string to the index of the file entry for the file path
 
plDynamicArray< plUInt8 > m_AllPathStrings
 one large array holding all path strings for the file entries, to reduce allocations
 

Detailed Description

Table-of-contents for an plArchive file.


The documentation for this class was generated from the following files: