Logo Search packages:      
Sourcecode: scummvm version File versions

Common::SubReadStream Class Reference

#include <stream.h>

Inheritance diagram for Common::SubReadStream:

Common::ReadStream Common::Stream Common::SeekableSubReadStreamEndian

List of all members.

Detailed Description

SubReadStream provides access to a ReadStream restricted to the range [currentPosition, currentPosition+end). Manipulating the parent stream directly /will/ mess up a substream. Likewise, manipulating two substreams of a parent stream will cause them to step on each others toes.

Definition at line 416 of file stream.h.

Public Member Functions

virtual void clearErr ()
virtual void clearIOFailed ()
virtual bool eos () const
virtual bool err () const
virtual bool ioFailed () const
virtual bool ioFailed ()
virtual uint32 read (void *dataPtr, uint32 dataSize)
byte readByte ()
int8 readSByte ()
int16 readSint16BE ()
int16 readSint16LE ()
int32 readSint32BE ()
int32 readSint32LE ()
MemoryReadStreamreadStream (uint32 dataSize)
uint16 readUint16BE ()
uint16 readUint16LE ()
uint32 readUint32BE ()
uint32 readUint32LE ()
 SubReadStream (ReadStream *parentStream, uint32 end, bool disposeParentStream=false)

Protected Attributes

bool _disposeParentStream
uint32 _end
bool _eos
uint32 _pos

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

Generated by  Doxygen 1.6.0   Back to index