|
Public Member Functions |
| | TMCfstream () |
| | TMCfstream (const int8 *fullPathName, int mode=TMCiostream::in, int32 bufSize=kDefaultBufferSize, boolean *createdNewFile=nil) |
| | TMCfstream (IMCFile &inFile, int mode=TMCiostream::current, int32 bufSize=kDefaultBufferSize, boolean *createdNewFile=nil) |
| | ~TMCfstream () |
| virtual MCErr | Init (const int8 *fullPathName, int mode=TMCiostream::in, int32 bufSize=kDefaultBufferSize, boolean *createdNewFile=nil) |
| virtual MCErr | Init (IMCFile &file, int32 bufSize, boolean *createdNewFile) |
| virtual int32 | tell () |
| virtual void | seek (int32 off, seek_dir dir=beg) |
| virtual void | putback (int8 c) |
| | can only be used on (some) input streams
|
| virtual void | read (int8 *s, int32 n) |
| virtual void | write (const int8 *s, int32 n) |
| void | append (int32 n) |
| void | flush () |
| void | synch () |
| void | SetInfo (int32 creator, int32 type) |
| int32 | GetFileSize () |
| virtual void | readFileRef (int8 *p) |
| virtual void | writeFileRef (const int8 *p) |
| virtual TMCiostreamContext * | GetContext () |
Protected Member Functions |
| void | close () |
| void | LoadBuffer (int32 pos) |
| void | LoadPrevBuffer () |
| void | LoadNextBuffer () |
| void | DumpBuffer () |
Protected Attributes |
| TMCCountedPtr< IMCFile > | fFile |
| int8 * | fBuffer |
| uint32 | fBufferSize |
| uint32 | fActualBufSize |
| uint32 | fBufferPos |
| uint32 | fBufferOffset |
| uint32 | fFileSize |
| boolean | fBufferModified |
| boolean | fFirstBufferLoaded |