|
| | HxMemStream (const char *pszName, char *pData, int nSize) |
| | Open a stream over a caller-owned byte range.
|
| virtual | ~HxMemStream () |
| | Close the stream and release the title.
|
| virtual void | SetMarker (int nOffset, int nWhence) |
| | Move the read position, clamping to the range.
|
| virtual int | GetMarker () |
| virtual int | Size () |
| virtual HxStream & | Write (const void *pSrc, int nSize) |
| | Report a fatal error, since the stream is read-only.
|
| virtual HxStream & | ReadData (void *pDest, int nSize) |
| | Move up to nSize bytes into pDest.
|
| virtual | ~HxStream () |
| | Close the stream.
|
| virtual HxStream * | UnderlyingStream () |
| | Report the stream this one reads through, if any.
|
| HxStream & | ReadNum (void *pDest, int nSize) |
| | Move nSize bytes into pDest, reversing their order when the stream swaps bytes.
|
| HxStream & | WriteNum (const void *pSrc, int nSize) |
| | Move nSize bytes out of pSrc, reversing their order when the stream swaps bytes.
|
| HxStream & | ReadStr (char *pszDest, int nDestSize) |
| | Read a string with a variable-length size prefix into a fixed buffer.
|
| HxStream & | ReadString (HxStr &str) |
| | Read a string with a variable-length size prefix into an HxStr.
|
| HxStream * | GetRootStream () |
| | Follow UnderlyingStream() from this stream until a stream reports none, and report that stream.
|
Read-only HxStream over a caller-supplied byte range.
Its RTTI descriptor is at 0x008f00c0. It has single inheritance from HxStream at offset 0. The type function is at 0x00405c80 and its vtable is at 0x00816e08. The object is 0x24 bytes: the HxStream subobject occupies +0x00 through +0x0f, the name occupies +0x10 and +0x14, and the three pointers follow at +0x18, +0x1c, and +0x20.
The class adds no virtual of its own and overrides six of HxStream's seven, retaining only UnderlyingStream(). The range belongs to the caller, and the destructor releases only the name.
Write() always reports a fatal error, which is what makes the stream read-only. One call site constructs one, at 0x001e676c.
| virtual HxStream & HxMemStream::ReadData |
( |
void * | pDest, |
|
|
int | nSize ) |
|
virtual |
Move up to nSize bytes into pDest.
A short read is clamped rather than reported. Once the read position is at the end of the range, the status word becomes 1, and when the inherited fatal flag is set the routine also reports a fatal error.
- Parameters
-
| pDest | The destination buffer. |
| nSize | The number of bytes to move. |
- Returns
- This stream.
- Ghidra address:
- NTSC-U/C: 0x00405ed0
- Ghidra address:
- PAL: 0x0043f7d0
Reimplemented from HxStream.