TrinityCore
ChunkedFile Class Reference

#include <loadlib.h>

Public Member Functions

uint8GetData ()
 
uint32 GetDataSize ()
 
 ChunkedFile ()
 
virtual ~ChunkedFile ()
 
bool prepareLoadedData ()
 
bool loadFile (std::shared_ptr< CASC::Storage const > mpq, std::string const &fileName, bool log=true)
 
bool loadFile (std::shared_ptr< CASC::Storage const > mpq, uint32 fileDataId, std::string const &description, bool log=true)
 
void free ()
 
void parseChunks ()
 
FileChunkGetChunk (std::string const &name)
 

Public Attributes

uint8data
 
uint32 data_size
 
std::multimap< std::string, FileChunk * > chunks
 

Detailed Description

Definition at line 73 of file loadlib.h.

Constructor & Destructor Documentation

◆ ChunkedFile()

ChunkedFile::ChunkedFile ( )

Definition at line 25 of file loadlib.cpp.

◆ ~ChunkedFile()

ChunkedFile::~ChunkedFile ( )
virtual

Definition at line 31 of file loadlib.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ free()

void ChunkedFile::free ( )

Definition at line 105 of file loadlib.cpp.

+ Here is the caller graph for this function:

◆ GetChunk()

FileChunk * ChunkedFile::GetChunk ( std::string const &  name)

Definition at line 168 of file loadlib.cpp.

+ Here is the caller graph for this function:

◆ GetData()

uint8 * ChunkedFile::GetData ( )
inline

Definition at line 79 of file loadlib.h.

+ Here is the caller graph for this function:

◆ GetDataSize()

uint32 ChunkedFile::GetDataSize ( )
inline

Definition at line 80 of file loadlib.h.

+ Here is the caller graph for this function:

◆ loadFile() [1/2]

bool ChunkedFile::loadFile ( std::shared_ptr< CASC::Storage const >  mpq,
std::string const &  fileName,
bool  log = true 
)

Definition at line 36 of file loadlib.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadFile() [2/2]

bool ChunkedFile::loadFile ( std::shared_ptr< CASC::Storage const >  mpq,
uint32  fileDataId,
std::string const &  description,
bool  log = true 
)

Definition at line 63 of file loadlib.cpp.

+ Here is the call graph for this function:

◆ parseChunks()

void ChunkedFile::parseChunks ( )

Definition at line 140 of file loadlib.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ prepareLoadedData()

bool ChunkedFile::prepareLoadedData ( )

Definition at line 90 of file loadlib.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ chunks

std::multimap<std::string, FileChunk*> ChunkedFile::chunks

Definition at line 90 of file loadlib.h.

◆ data

uint8* ChunkedFile::data

Definition at line 76 of file loadlib.h.

◆ data_size

uint32 ChunkedFile::data_size

Definition at line 77 of file loadlib.h.


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