ScummVM API documentation
Dgds::DgdsChunkReader Class Reference

Public Member Functions

 DgdsChunkReader (Common::SeekableReadStream *stream)
 
bool isSection (const Common::String &section) const
 
bool isSection (DGDS_ID section) const
 
bool readNextHeader (DGDS_EX ex, const Common::String &filename)
 
bool readContent (Decompressor *decompressor)
 
void skipContent ()
 
Common::SeekableReadStreammakeMemoryStream ()
 
Common::SeekableReadStreamgetContent ()
 
bool isContainer () const
 
DGDS_ID getId () const
 
const char * getIdStr () const
 
uint32 getSize () const
 

Public Attributes

DGDS_EX _ex
 

Member Function Documentation

◆ readContent()

bool Dgds::DgdsChunkReader::readContent ( Decompressor decompressor)

Get a stream of the (decompressed if appropriate) content. This stream is owned by this object and invalidated when another header or content block is read. Do not delete it.

◆ skipContent()

void Dgds::DgdsChunkReader::skipContent ( )

Don't bother reading the current chunk, just move to the next one. This is the alternative to readContent().

◆ makeMemoryStream()

Common::SeekableReadStream* Dgds::DgdsChunkReader::makeMemoryStream ( )

Duplicate the buffer in the current content stream so that it can be retained in another object.


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