|
| | FileStream (const HxStr &path, int nWrite) |
| | Open a file.
|
| virtual | ~FileStream () |
| | Close the file.
|
| virtual Stream & | Read (void *pDest, int nSize) |
| virtual Stream & | Write (const void *pSrc, int nSize) |
| virtual Stream & | Flush () |
| virtual Stream & | Seek (int nOffset, int nWhence) |
| virtual int | Tell () |
| virtual int | Eof () |
| virtual int | Fail () |
| virtual Stream & | ReadLE (void *pDest, int nSize) |
| | Move nSize bytes into pDest, correcting the byte order for the host.
|
| virtual Stream & | WriteLE (const void *pSrc, int nSize) |
| | Move nSize bytes out of pSrc, correcting the byte order for the file.
|
| virtual | ~Stream () |
| | Close the stream.
|
| Stream & | ReadString (HxStr &name) |
| | Read a NUL-terminated name and append it to a string.
|
Stream over a C library FILE.
Its RTTI descriptor is at 0x008eefd8. It has single inheritance from Rnd::Stream at offset 0. The object is 8 bytes and its vtable is at 0x008261d8.
Every transfer goes straight to fread or fwrite with a one-byte element size, and the end and failure tests read bits 0x20 and 0x40 of the FILE flags rather than calling feof and ferror. A path that fails to open leaves the FILE null, which Fail() then reports.