|
| | BufStream (char *pBuffer, int nSize) |
| | Construct a stream over nSize bytes at pBuffer, positioned at the start.
|
| 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 fixed buffer the caller owns.
Its RTTI descriptor is at 0x008ef1e0. It has single inheritance from Rnd::Stream at offset 0. The object is 0x14 bytes and its vtable is at 0x008260c0.
The buffer neither grows nor is released here. A transfer that would pass mSize is shortened to the remainder and sets mFail, so an overrun reports itself rather than corrupting memory. Slot 10 of the vtable is null, so a BufStream must not be destroyed through a Rnd::Stream pointer.