Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

Common::MemoryReadStream Class Reference

#include <stream.h>

Inheritance diagram for Common::MemoryReadStream:

Common::SeekableReadStream Common::ReadStream Common::Stream Common::MemoryReadStreamEndian

List of all members.

Detailed Description

Simple memory based 'stream', which implements the ReadStream interface for a plain memory block.

Definition at line 552 of file stream.h.

Public Member Functions

void clearErr ()
bool eos () const
virtual bool err () const
 MemoryReadStream (const byte *dataPtr, uint32 dataSize, DisposeAfterUse::Flag disposeMemory=DisposeAfterUse::NO)
int32 pos () const
uint32 read (void *dataPtr, uint32 dataSize)
byte readByte ()
virtual String readLine ()
virtual char * readLine (char *s, size_t bufSize)
FORCEINLINE int8 readSByte ()
FORCEINLINE int16 readSint16BE ()
FORCEINLINE int16 readSint16LE ()
FORCEINLINE int32 readSint32BE ()
FORCEINLINE int32 readSint32LE ()
MemoryReadStreamreadStream (uint32 dataSize)
uint16 readUint16BE ()
uint16 readUint16LE ()
uint32 readUint32BE ()
uint32 readUint32LE ()
bool seek (int32 offs, int whence=SEEK_SET)
void setEnc (byte value)
int32 size () const
virtual bool skip (uint32 offset)

Private Attributes

DisposeAfterUse::Flag _disposeMemory
byte _encbyte
bool _eos
uint32 _pos
const byte * _ptr
const byte *const _ptrOrig
const uint32 _size

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

Generated by  Doxygen 1.6.0   Back to index