#include "mpq_libmpq04.h"
◆ MPQFile() [1/4]
MPQFile::MPQFile |
( |
const MPQFile & |
| ) |
|
|
inlineprivate |
◆ MPQFile() [2/4]
MPQFile::MPQFile |
( |
const char * |
filename | ) |
|
62 :
67{
69 {
70 mpq_archive* mpq_a = gOpenArchive->mpq_a;
71
72 uint32_t filenum;
73 if (libmpq__file_number(mpq_a, filename, &filenum)) continue;
74 libmpq__off_t transferred;
75 libmpq__file_unpacked_size(mpq_a, filenum, &
size);
76
77
79 {
80
83 return;
84 }
86
87
88 libmpq__file_read(mpq_a, filenum, (
unsigned char*)
buffer,
size, &transferred);
89
90 return;
91 }
94}
char * buffer
Definition: mpq_libmpq04.h:78
libmpq__off_t size
Definition: mpq_libmpq04.h:79
libmpq__off_t pointer
Definition: mpq_libmpq04.h:79
bool eof
Definition: mpq_libmpq04.h:77
ArchiveSet gOpenArchives
Definition: mpq_libmpq.cpp:22
References buffer, eof, gOpenArchives, and size.
◆ ~MPQFile() [1/2]
void close()
Definition: mpq_libmpq.cpp:126
References close().
◆ MPQFile() [3/4]
MPQFile::MPQFile |
( |
const MPQFile & |
| ) |
|
|
inlineprivate |
◆ MPQFile() [4/4]
MPQFile::MPQFile |
( |
const char * |
filename | ) |
|
◆ ~MPQFile() [2/2]
◆ close() [1/2]
References buffer, and eof.
Referenced by ADTFile::init(), WDTFile::init(), FileLoader::loadFile(), DBCFile::open(), Model::open(), WMORoot::open(), WMOGroup::open(), ReadBuild(), ADTFile::~ADTFile(), ~MPQFile(), and WDTFile::~WDTFile().
◆ close() [2/2]
◆ getBuffer() [1/2]
char * MPQFile::getBuffer |
( |
| ) |
|
|
inline |
◆ getBuffer() [2/2]
char * MPQFile::getBuffer |
( |
| ) |
|
|
inline |
◆ getPointer() [1/2]
char * MPQFile::getPointer |
( |
| ) |
|
|
inline |
◆ getPointer() [2/2]
char * MPQFile::getPointer |
( |
| ) |
|
|
inline |
◆ getPos() [1/2]
std::size_t MPQFile::getPos |
( |
| ) |
|
|
inline |
◆ getPos() [2/2]
std::size_t MPQFile::getPos |
( |
| ) |
|
|
inline |
◆ getSize() [1/2]
std::size_t MPQFile::getSize |
( |
| ) |
|
|
inline |
◆ getSize() [2/2]
std::size_t MPQFile::getSize |
( |
| ) |
|
|
inline |
◆ isEof() [1/2]
◆ isEof() [2/2]
◆ operator=() [1/2]
void MPQFile::operator= |
( |
const MPQFile & |
| ) |
|
|
inlineprivate |
◆ operator=() [2/2]
void MPQFile::operator= |
( |
const MPQFile & |
| ) |
|
|
inlineprivate |
◆ read() [1/2]
std::size_t MPQFile::read |
( |
void * |
dest, |
|
|
std::size_t |
bytes |
|
) |
| |
◆ read() [2/2]
std::size_t MPQFile::read |
( |
void * |
dest, |
|
|
std::size_t |
bytes |
|
) |
| |
◆ seek() [1/2]
void MPQFile::seek |
( |
int |
offset | ) |
|
◆ seek() [2/2]
void MPQFile::seek |
( |
int |
offset | ) |
|
◆ seekRelative() [1/2]
void MPQFile::seekRelative |
( |
int |
offset | ) |
|
◆ seekRelative() [2/2]
void MPQFile::seekRelative |
( |
int |
offset | ) |
|
◆ buffer
◆ eof
◆ pointer
libmpq__off_t MPQFile::pointer |
|
private |
◆ size
libmpq__off_t MPQFile::size |
|
private |