Starshatter_Open
Open source Starshatter engine
|
#include <Archive.h>
Public Member Functions | |
DataArchive (const char *name=0) | |
~DataArchive () | |
void | LoadDatafile (const char *name) |
void | Insert (const char *name) |
void | Extract (const char *name) |
void | Remove (const char *name) |
void | List () |
void | WriteEntry (int index, BYTE *buf) |
int | FindEntry (const char *req_name) |
int | ExpandEntry (int index, BYTE *&buf, bool null_terminate=false) |
BYTE * | CompressEntry (int index) |
int | InsertEntry (const char *name) |
void | RemoveEntry (int index) |
DWORD | Blocks (DWORD raw_size) |
DWORD | DirBlocks () |
DWORD | FileBlocks (int index) |
int | FindDataBlocks (int blocks_needed) |
void | CreateBlockMap () |
DWORD | NumFiles () |
DataEntry * | GetFile (int i) |
const char * | Name () const |
Static Public Member Functions | |
static const char * | TYPENAME () |
DataArchive::DataArchive | ( | const char * | name = 0 | ) |
Definition at line 40 of file Archive.cpp.
DataArchive::~DataArchive | ( | ) |
Definition at line 48 of file Archive.cpp.
DWORD DataArchive::Blocks | ( | DWORD | raw_size | ) |
Definition at line 96 of file Archive.cpp.
BYTE * DataArchive::CompressEntry | ( | int | index | ) |
Definition at line 283 of file Archive.cpp.
void DataArchive::CreateBlockMap | ( | ) |
Definition at line 121 of file Archive.cpp.
DWORD DataArchive::DirBlocks | ( | ) |
Definition at line 104 of file Archive.cpp.
int DataArchive::ExpandEntry | ( | int | index, |
BYTE *& | buf, | ||
bool | null_terminate = false |
||
) |
Definition at line 330 of file Archive.cpp.
void DataArchive::Extract | ( | const char * | name | ) |
Definition at line 515 of file Archive.cpp.
DWORD DataArchive::FileBlocks | ( | int | index | ) |
Definition at line 111 of file Archive.cpp.
int DataArchive::FindDataBlocks | ( | int | blocks_needed | ) |
Definition at line 166 of file Archive.cpp.
int DataArchive::FindEntry | ( | const char * | req_name | ) |
Definition at line 255 of file Archive.cpp.
void DataArchive::Insert | ( | const char * | name | ) |
Definition at line 447 of file Archive.cpp.
int DataArchive::InsertEntry | ( | const char * | name | ) |
Definition at line 384 of file Archive.cpp.
void DataArchive::List | ( | ) |
Definition at line 560 of file Archive.cpp.
void DataArchive::LoadDatafile | ( | const char * | name | ) |
Definition at line 186 of file Archive.cpp.
void DataArchive::Remove | ( | const char * | name | ) |
Definition at line 543 of file Archive.cpp.
void DataArchive::RemoveEntry | ( | int | index | ) |
Definition at line 439 of file Archive.cpp.
void DataArchive::WriteEntry | ( | int | index, |
BYTE * | buf | ||
) |
Definition at line 56 of file Archive.cpp.