|
#include <CATStreamRAM.h>

Definition at line 23 of file CATStreamRAM.h.
Public Member Functions | |
| CATStreamRAM () | |
| virtual | ~CATStreamRAM () |
| virtual CATResult | Open (const CATWChar *name, OPEN_MODE mode) |
| virtual CATResult | Close () |
| virtual bool | IsOpen () |
| virtual CATResult | Read (void *buffer, CATUInt32 &length) |
| virtual CATResult | Write (const void *buffer, CATUInt32 length) |
| virtual CATResult | Size (CATInt64 &filesize) |
| virtual bool | IsSeekable () |
| IsSeekable() returns true for files. | |
| virtual CATResult | SeekRelative (CATInt32 offset) |
| virtual CATResult | SeekAbsolute (CATInt64 position) |
| virtual CATResult | SeekFromEnd (CATInt32 offset) |
| virtual CATResult | GetPosition (CATInt64 &position) |
| virtual CATString | GetName () const |
| GetName() retrieves the filename of the stream. | |
| virtual CATResult | ReadAbs (void *buffer, CATUInt32 &length, CATInt64 position) |
| virtual CATResult | WriteAbs (const void *buffer, CATUInt32 length, CATInt64 position) |
| CATResult | ReallocCache (CATInt32 minLength) |
| CATResult | ShrinkCache () |
| ShrinkCache() shrinks the cache to exactly the current fSize(). | |
| CATResult | FromFile (const CATWChar *pathName) |
| CATResult | ToFile (const CATWChar *pathName, bool overwrite=true) |
| CATUInt8 * | GetRawCache () |
Private Member Functions | |
| CATStreamRAM & | operator= (const CATStreamRAM &srcStream) |
Private Attributes | |
| CATUInt8 * | fRamCache |
| CATInt32 | fCacheSize |
| CATInt32 | fSize |
| CATInt32 | fCurPos |
| CATString | fStreamName |
1.5.4