#include <RageFileBasic.h>
Inheritance diagram for RageFileObj:
Public Member Functions | |
RageFileObj () | |
virtual | ~RageFileObj () |
virtual CString | GetError () const |
virtual void | ClearError () |
bool | AtEOF () const |
int | Seek (int iOffset) |
int | Seek (int offset, int whence) |
int | Tell () const |
int | Read (void *pBuffer, size_t iBytes) |
int | Read (CString &buffer, int bytes=-1) |
int | Read (void *buffer, size_t bytes, int nmemb) |
int | Write (const void *pBuffer, size_t iBytes) |
int | Write (const CString &sString) |
int | Write (const void *buffer, size_t bytes, int nmemb) |
int | Flush () |
int | GetLine (CString &out) |
int | PutLine (const CString &str) |
void | EnableCRC32 (bool on=true) |
bool | GetCRC32 (uint32_t *iRet) |
virtual int | GetFileSize () const =0 |
virtual CString | GetDisplayPath () const |
virtual RageFileBasic * | Copy () const |
Protected Member Functions | |
virtual int | SeekInternal (int iOffset) |
virtual int | ReadInternal (void *pBuffer, size_t iBytes)=0 |
virtual int | WriteInternal (const void *pBuffer, size_t iBytes)=0 |
virtual int | FlushInternal () |
void | EnableBuffering () |
void | SetError (const CString &sError) |
Protected Attributes | |
CString | m_sError |
Private Types | |
enum | { BSIZE = 1024 } |
Private Member Functions | |
int | FillBuf () |
void | ResetBuf () |
Private Attributes | |
bool | m_bEOF |
int | m_iFilePos |
char * | m_pBuffer |
char * | m_pBuf |
int | m_iBufAvail |
bool | m_bCRC32Enabled |
uint32_t | m_iCRC32 |
|
|
|
|
|
|
|
Implements RageFileBasic. |
|
Implements RageFileBasic. |
|
Implements RageFileBasic. Reimplemented in RageFileObjInflate, RageFileObjDirect, RageFileObjMem, RageFileDriverSlice, and RageFileObjTimeout. |
|
|
|
Implements RageFileBasic. |
|
|
|
Implements RageFileBasic. |
|
Reimplemented in RageFileObjDeflate, RageFileObjDirect, and RageFileObjTimeout. |
|
Implements RageFileBasic. |
|
Reimplemented from RageFileBasic. Reimplemented in RageFileObjDirect. |
|
Implements RageFileBasic. |
|
Implements RageFileBasic. Implemented in RageFileObjInflate, RageFileObjDeflate, RageFileObjDirect, RageFileObjMem, RageFileDriverSlice, and RageFileObjTimeout. |
|
Implements RageFileBasic. |
|
Implements RageFileBasic. |
|
Implements RageFileBasic. |
|
Implements RageFileBasic. |
|
Implements RageFileBasic. |
|
Implemented in RageFileObjInflate, RageFileObjDeflate, RageFileObjDirect, RageFileObjMem, RageFileDriverSlice, and RageFileObjTimeout. |
|
|
|
Implements RageFileBasic. |
|
Implements RageFileBasic. |
|
Reimplemented in RageFileObjInflate, RageFileObjDirect, RageFileObjMem, and RageFileDriverSlice. |
|
|
|
Implements RageFileBasic. |
|
Implements RageFileBasic. |
|
Implements RageFileBasic. |
|
Implements RageFileBasic. |
|
Implemented in RageFileObjInflate, RageFileObjDeflate, RageFileObjDirect, RageFileObjMem, RageFileDriverSlice, and RageFileObjTimeout. |
|
|
|
|
|
|
|
|
|
Reimplemented in RageFileObjInflate, RageFileObjMem, and RageFileDriverSlice. |
|
|
|
|
|
|