#include <CATStreamSub.h>
Definition at line 22 of file CATStreamSub.h.
Public Member Functions | |
CATStreamSub (CATInt64 offset, CATInt64 length, CATStream *parent) | |
virtual | ~CATStreamSub () |
virtual CATResult | Open (const CATWChar *pathname, OPEN_MODE mode) |
virtual CATResult | OnAcquireSub () |
virtual CATResult | OnReleaseSub () |
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) |
Protected Attributes | |
CATStream * | fParent |
CATInt64 | fOffset |
CATInt64 | fLength |
CATInt64 | fCurPos |