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


Public Member Functions | |
| OBFileStream (const HxStr &path) | |
| Open a file for writing. | |
| virtual OBStream & | Write (const void *pSrc, int nSize) |
| virtual OBStream & | Reset () |
| virtual int | Fail () |
| virtual | ~OBFileStream () |
| Close the file. | |
| virtual int | Tell () |
| Report the write position. | |
| Public Member Functions inherited from OBStream | |
| virtual OBStream & | WriteLE (const void *pSrc, int nSize) |
| Move nSize bytes out of pSrc through the virtual Write(). | |
Output stream over a C library FILE.
Its RTTI descriptor is at 0x00901bd0. It has single inheritance from OBStream at offset 0. The type function is at 0x004ed900. The object is 8 bytes. Its vtable at 0x00824208 runs to slot
Two slots are added beyond OBStream's four, in the order the declarations below give. The destructor is one of them, because OBStream declares none, so a stream of this class destroyed through an OBStream * never closes its file.
Every transfer goes to fwrite with a one-byte element size, and the failure test reads bit 0x40 of the FILE flags rather than calling ferror. Reset() does nothing, and in particular does not flush.
| OBFileStream::OBFileStream | ( | const HxStr & | path | ) |
Open a file for writing.
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.
Vtable slot 5, the first virtual this class adds.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Report the write position.
Vtable slot 6, the second virtual this class adds. OBStream has no such slot, which is why this one is new rather than an override.