|
| | IOBMemStream () |
| | Open an empty stream.
|
| | IOBMemStream (const void *pData, int nSize) |
| | Open a stream and write an initial block into it.
|
| virtual | ~IOBMemStream () |
| | Close the stream and release the buffer.
|
| virtual IBStream & | Read (void *pDest, int nSize) |
| virtual IBStream & | Seek (int nOffset, int nWhence) |
| virtual int | Tell () |
| virtual int | Eof () |
| virtual int | Fail () |
| | Test whether a transfer has failed.
|
| virtual IBStream & | Flush () |
| virtual void | Fill (const void *pSrc, int nSize) |
| | Grow the buffer by nSize bytes and write nSize bytes at the cursor.
|
| virtual void | Resize (int nSize) |
| | Resize the buffer and rewind the cursor.
|
| virtual char * | Buffer () |
| | Report the buffer.
|
| void | Compact () |
| | Drop the bytes already read from the front of the buffer and rewind the cursor.
|
| virtual OBStream & | Write (const void *pSrc, int nSize) |
| virtual OBStream & | Reset () |
| virtual IBStream & | ReadLE (void *pDest, int nSize) |
| | Move nSize bytes into pDest through the virtual Read().
|
| virtual | ~IBStream () |
| | Close the stream.
|
| virtual OBStream & | WriteLE (const void *pSrc, int nSize) |
| | Move nSize bytes out of pSrc through the virtual Write().
|
Bidirectional stream over a growing byte buffer.
Its RTTI descriptor is at 0x008f00d0. It has single inheritance from IOBStream at offset 0. The type function is at 0x004ed780 and builds IOBStream's descriptor inline first.
The object is 0x20 bytes. Two vtable pointers occupy +0x00 and +0x04, addressing 0x008241a0 for the IBStream subobject and 0x00824170 for the OBStream subobject, whose entries adjust this by -0x04. The end flag, the failure flag, and the cursor follow at +0x08, +0x0c, and +0x10, and the buffer is a std::vector<char> whose three pointers occupy +0x14, +0x18, and +0x1c.
One cursor serves both halves, so a write advances the position a read then continues from. That is the difference from IOBPreallocMemStream, which has two positions and a fixed buffer.
SetSize() through Buffer() are the three slots the primary vtable adds beyond IBStream's eight. They are declared here rather than on IOBStream, and iobstream.h records why that split cannot be settled.