OpenMW
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
anonymous_namespace{constrainedfiledatastream.cpp}::ConstrainedDataStream Class Reference

List of all members.

Public Member Functions

 ConstrainedDataStream (const Ogre::String &fname, size_t start, size_t length)
size_t read (void *buf, size_t count)
void skip (long count)
void seek (size_t pos)
virtual size_t tell () const
virtual bool eof () const
virtual void close ()

Static Public Attributes

static const size_t sBufferSize = 4096
static const size_t sBufferThreshold = 1024

Private Member Functions

void fill (size_t newOrigin)

Private Attributes

LowLevelFile mFile
size_t mOrigin
size_t mExtent
size_t mPos
uint8_t mBuffer [sBufferSize]
size_t mBufferOrigin
size_t mBufferExtent

Constructor & Destructor Documentation

anonymous_namespace{constrainedfiledatastream.cpp}::ConstrainedDataStream::ConstrainedDataStream ( const Ogre::String &  fname,
size_t  start,
size_t  length 
) [inline]

Member Function Documentation

virtual void anonymous_namespace{constrainedfiledatastream.cpp}::ConstrainedDataStream::close ( ) [inline, virtual]
virtual bool anonymous_namespace{constrainedfiledatastream.cpp}::ConstrainedDataStream::eof ( ) const [inline, virtual]
void anonymous_namespace{constrainedfiledatastream.cpp}::ConstrainedDataStream::fill ( size_t  newOrigin) [inline, private]
size_t anonymous_namespace{constrainedfiledatastream.cpp}::ConstrainedDataStream::read ( void *  buf,
size_t  count 
) [inline]
void anonymous_namespace{constrainedfiledatastream.cpp}::ConstrainedDataStream::seek ( size_t  pos) [inline]
void anonymous_namespace{constrainedfiledatastream.cpp}::ConstrainedDataStream::skip ( long  count) [inline]
virtual size_t anonymous_namespace{constrainedfiledatastream.cpp}::ConstrainedDataStream::tell ( ) const [inline, virtual]

Member Data Documentation

uint8_t anonymous_namespace{constrainedfiledatastream.cpp}::ConstrainedDataStream::mBuffer[sBufferSize] [private]
size_t anonymous_namespace{constrainedfiledatastream.cpp}::ConstrainedDataStream::mBufferExtent [private]
size_t anonymous_namespace{constrainedfiledatastream.cpp}::ConstrainedDataStream::mBufferOrigin [private]
size_t anonymous_namespace{constrainedfiledatastream.cpp}::ConstrainedDataStream::mExtent [private]
LowLevelFile anonymous_namespace{constrainedfiledatastream.cpp}::ConstrainedDataStream::mFile [private]
size_t anonymous_namespace{constrainedfiledatastream.cpp}::ConstrainedDataStream::mOrigin [private]
size_t anonymous_namespace{constrainedfiledatastream.cpp}::ConstrainedDataStream::mPos [private]
const size_t anonymous_namespace{constrainedfiledatastream.cpp}::ConstrainedDataStream::sBufferSize = 4096 [static]
const size_t anonymous_namespace{constrainedfiledatastream.cpp}::ConstrainedDataStream::sBufferThreshold = 1024 [static]

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