TrinityCore
FileChunk Class Reference

#include <loadlib.h>

Public Member Functions

 FileChunk (uint8 *data_, uint32 size_)
 
 ~FileChunk ()
 
template<class T >
T * As ()
 
void parseSubChunks ()
 
FileChunkGetSubChunk (std::string const &name)
 

Public Attributes

uint8data
 
uint32 size
 
std::multimap< std::string, FileChunk * > subchunks
 

Detailed Description

Definition at line 57 of file loadlib.h.

Constructor & Destructor Documentation

◆ FileChunk()

FileChunk::FileChunk ( uint8 data_,
uint32  size_ 
)
inline

Definition at line 60 of file loadlib.h.

+ Here is the caller graph for this function:

◆ ~FileChunk()

FileChunk::~FileChunk ( )

Definition at line 177 of file loadlib.cpp.

Member Function Documentation

◆ As()

template<class T >
T * FileChunk::As ( )
inline

Definition at line 67 of file loadlib.h.

+ Here is the caller graph for this function:

◆ GetSubChunk()

FileChunk * FileChunk::GetSubChunk ( std::string const &  name)

Definition at line 212 of file loadlib.cpp.

+ Here is the caller graph for this function:

◆ parseSubChunks()

void FileChunk::parseSubChunks ( )

Definition at line 185 of file loadlib.cpp.

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

Member Data Documentation

◆ data

uint8* FileChunk::data

Definition at line 63 of file loadlib.h.

◆ size

uint32 FileChunk::size

Definition at line 64 of file loadlib.h.

◆ subchunks

std::multimap<std::string, FileChunk*> FileChunk::subchunks

Definition at line 69 of file loadlib.h.


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