MemStream Class Reference

#include <Stream.h>

Inherits BaseStream.


Public Member Functions

 MemStream (char *bufA, Guint startA, Guint lengthA, Object *dictA)
virtual ~MemStream ()
virtual StreammakeSubStream (Guint start, GBool limited, Guint lengthA, Object *dictA)
virtual StreamKind getKind ()
virtual void reset ()
virtual void close ()
virtual int getChar ()
virtual int lookChar ()
virtual int getPos ()
virtual void setPos (Guint pos, int dir=0)
virtual Guint getStart ()
virtual void moveStart (int delta)
virtual void doDecryption (Guchar *fileKey, int keyLength, int objNum, int objGen)

Private Attributes

char * buf
Guint start
Guint length
char * bufEnd
char * bufPtr
GBool needFree


Detailed Description

Definition at line 305 of file Stream.h.


Constructor & Destructor Documentation

MemStream::MemStream ( char *  bufA,
Guint  startA,
Guint  lengthA,
Object dictA 
)

virtual MemStream::~MemStream (  )  [virtual]


Member Function Documentation

virtual Stream* MemStream::makeSubStream ( Guint  start,
GBool  limited,
Guint  lengthA,
Object dictA 
) [virtual]

Implements BaseStream.

virtual StreamKind MemStream::getKind (  )  [inline, virtual]

Implements Stream.

Definition at line 312 of file Stream.h.

References strWeird.

00312 { return strWeird; }

virtual void MemStream::reset (  )  [virtual]

Implements Stream.

virtual void MemStream::close (  )  [virtual]

Reimplemented from Stream.

virtual int MemStream::getChar (  )  [inline, virtual]

Implements Stream.

Definition at line 315 of file Stream.h.

References bufEnd, and bufPtr.

00316     { return (bufPtr < bufEnd) ? (*bufPtr++ & 0xff) : EOF; }

virtual int MemStream::lookChar (  )  [inline, virtual]

Implements Stream.

Definition at line 317 of file Stream.h.

References bufEnd, and bufPtr.

00318     { return (bufPtr < bufEnd) ? (*bufPtr & 0xff) : EOF; }

virtual int MemStream::getPos (  )  [inline, virtual]

Implements Stream.

Definition at line 319 of file Stream.h.

References buf, and bufPtr.

00319 { return (int)(bufPtr - buf); }

virtual void MemStream::setPos ( Guint  pos,
int  dir = 0 
) [virtual]

Implements BaseStream.

virtual Guint MemStream::getStart (  )  [inline, virtual]

Implements BaseStream.

Definition at line 321 of file Stream.h.

00321 { return start; }

virtual void MemStream::moveStart ( int  delta  )  [virtual]

Implements BaseStream.

virtual void MemStream::doDecryption ( Guchar fileKey,
int  keyLength,
int  objNum,
int  objGen 
) [virtual]

Reimplemented from BaseStream.


Field Documentation

char* MemStream::buf [private]

Definition at line 330 of file Stream.h.

Referenced by getPos().

Guint MemStream::start [private]

Definition at line 331 of file Stream.h.

Guint MemStream::length [private]

Definition at line 332 of file Stream.h.

char* MemStream::bufEnd [private]

Definition at line 333 of file Stream.h.

Referenced by getChar(), and lookChar().

char* MemStream::bufPtr [private]

Definition at line 334 of file Stream.h.

Referenced by getChar(), getPos(), and lookChar().

GBool MemStream::needFree [private]

Definition at line 335 of file Stream.h.


The documentation for this class was generated from the following file:
Generated on Fri Jan 9 15:45:38 2009 for libextractor by  doxygen 1.5.1