resonance 1.0.1
Loading...
Searching...
No Matches
IOBStream Class Reference

Bidirectional byte stream interface. More...

#include <iobstream.h>

Inheritance diagram for IOBStream:
Collaboration diagram for IOBStream:

Additional Inherited Members

Public Member Functions inherited from IBStream
virtual IBStream & Read (void *pDest, int nSize)=0
 Move nSize bytes into pDest.
virtual IBStream & Seek (int nOffset, int nWhence)=0
 Move the read position.
virtual int Tell ()=0
 Report the read position.
virtual int Eof ()=0
 Test whether the read position has arrived at the end of the data.
virtual int Fail ()=0
 Test whether a transfer has failed.
virtual IBStream & ReadLE (void *pDest, int nSize)
 Move nSize bytes into pDest through the virtual Read().
virtual IBStream & Flush ()=0
 Service the underlying transport.
virtual ~IBStream ()
 Close the stream.
Public Member Functions inherited from OBStream
virtual OBStream & Write (const void *pSrc, int nSize)=0
 Move nSize bytes out of pSrc.
virtual OBStream & Reset ()=0
 Discard everything written so far.
virtual int Fail ()=0
 Test whether a transfer has failed.
virtual OBStream & WriteLE (const void *pSrc, int nSize)
 Move nSize bytes out of pSrc through the virtual Write().

Detailed Description

Bidirectional byte stream interface.

Its RTTI descriptor is at 0x008ef570. The base list at 0x008242c8 records two bases, IBStream at offset 0 and OBStream at offset 4, both public and non-virtual. The descriptor is built only inside IOBMemStream's type function at 0x004ed780, and no vtable in the image addresses a type function for it. The class is therefore abstract and is never instantiated alone.

Recovery stops at the two bases. IOBMemStream is the only subclass, and its primary vtable adds three slots beyond the eight IBStream declares. Whether those three were declared here or on IOBMemStream cannot be settled from the image, because an abstract class with no vtable contributes no evidence of its own slot count. They are declared on IOBMemStream, which is the reading that assumes the least. IOBPreallocMemStream does not help, since it derives from IBStream and OBStream directly and adds two slots of its own with different meanings.

Fail() is declared with the same signature on both bases, and the one override in a derived class serves both slots.


The documentation for this class was generated from the following file: