◆ LzssReadStream()
A class that decompresses LZSS data and implements ReadStream for easy access to the decompiled data.
- Parameters
-
◆ eos()
bool ZVision::LzssReadStream::eos |
( |
| ) |
const |
|
overridevirtual |
Return true if a read failed because the stream end has been reached.
This flag is cleared by clearErr(). For a SeekableReadStream, the flag is also cleared by a successful seek.
- Note
- The semantics of any implementation of this method is supposed to match that of ISO C feof(). In particular, in a stream with N bytes, reading exactly N bytes from the start should not set eos; only reading beyond the available data should set it.
Implements Common::ReadStream.
◆ read()
uint32 ZVision::LzssReadStream::read |
( |
void * |
dataPtr, |
|
|
uint32 |
dataSize |
|
) |
| |
|
overridevirtual |
Read data from the stream.
Subclasses must implement this method. All other read methods are implemented using it.
- Note
- The semantics of any implementation of this method is supposed to match that of ISO C fread(), in particular where it concerns setting error and end of file/stream flags.
- Parameters
-
dataPtr | Pointer to a buffer into which the data is read. |
dataSize | Number of bytes to be read. |
- Returns
- The number of bytes that were actually read.
Implements Common::ReadStream.
The documentation for this class was generated from the following file: