|
resonance 1.0.1
|
Input stream over a C library FILE. More...
#include <ibfilestream.h>


Public Member Functions | |
| IBFileStream (const HxStr &path) | |
| Open a file for reading. | |
| virtual | ~IBFileStream () |
| Close the file. | |
| virtual IBStream & | Read (void *pDest, int nSize) |
| virtual IBStream & | Seek (int nOffset, int nWhence) |
| virtual int | Tell () |
| virtual int | Eof () |
| virtual int | Fail () |
| virtual IBStream & | Flush () |
| Public Member Functions inherited from IBStream | |
| virtual IBStream & | ReadLE (void *pDest, int nSize) |
| Move nSize bytes into pDest through the virtual Read(). | |
| virtual | ~IBStream () |
| Close the stream. | |
Input stream over a C library FILE.
Its RTTI descriptor is at 0x00901bc0. It has single inheritance from IBStream at offset 0. The type function is at 0x004ed888. The object is 8 bytes. Its vtable at 0x00824248 runs to slot 8 and does not add an entry. Two call sites construct one.
Every transfer goes to fread 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, which is the inlined form of those two macros. A path that fails to open produces a null FILE, which Fail() then reports, and the destructor closes it with no null test.
| IBFileStream::IBFileStream | ( | const HxStr & | path | ) |
Open a file for reading.
An empty path arrives at fopen as the program-wide empty string rather than as null.
| path | The file to open. |
|
virtual |
Close the file.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |