// // G A M E.O.N.E - LOW LEVEL LIB V1.0 // Copyright (C) 2001 LEVEL ONE ENTERTAINMENT, // Licensed under the terms of LGPL. //:--------------------------------------------------------------------------- //:Description // // LOW LEVEL CACHE STREAM MODULE // //:--------------------------------------------------------------------------- #ifndef _STREAM_CACHE_H #define _STREAM_CACHE_H #include "llstream.h" class CCacheModule : public CStreamModule { public: CCacheModule(); virtual ~CCacheModule(); virtual int read(void *ioBuf, int iNum); virtual int ioCtl( char *iCmd, void *ioOption );// send a command down the stream CStreamModule * Clone(); private: void Close(); unsigned char* m_cachePtr; int m_readPtr; int m_filesize; }; #endif // _STREAM_CACHE_H