ScummVM API documentation
Saga2::hResContext Class Reference
Inheritance diagram for Saga2::hResContext:
Saga2::hResource

Public Member Functions

 hResContext (hResContext *sire, hResID id, const char [])
 
uint32 getResID ()
 
uint32 size (hResID id)
 
uint32 count ()
 
uint32 count (hResID id)
 
bool seek (hResID id)
 
void rest ()
 
uint32 readbytes (void *buffer, uint32 size)
 
bool eor ()
 
size_t bytesleft ()
 
bool read (void *buffer, uint32 size)
 
bool skip (uint32 amount)
 
bool get (hResID id, void *buffer, uint32 size)
 
uint32 getSize (hResID id, const char desc[])
 
byte * loadResource (hResID id, const char desc[], const Common::Path &filename=Common::Path())
 
byte * loadIndexResource (int16 index, const char desc[], const Common::Path &filename=Common::Path())
 
void releaseIndexData ()
 
Common::FileresFileHandle ()
 

Public Attributes

bool _valid
 
Common::Path _filename
 

Protected Member Functions

hResEntryfindEntry (hResID id)
 

Protected Attributes

uint16 _numEntries
 
hResource_res
 
hResContext_parent
 
hResEntry_base
 
DataMap _indexData
 
Common::File _file
 
Common::File_handle
 
uint32 _bytecount
 
uint32 _bytepos
 

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