virtual bool WPXInputStream::atEOS |
( |
| ) |
|
|
pure virtual |
virtual bool WPXInputStream::isOLEStream |
( |
| ) |
|
|
pure virtual |
virtual const uint8_t* WPXInputStream::read |
( |
size_t |
numBytes, |
|
|
size_t & |
numBytesRead |
|
) |
| |
|
pure virtual |
Tries to read a given number of bytes starting from the current position inside the input stream.
- Parameters
-
numBytes | Number of bytes desired to be read. |
numBytesRead | Number of bytes that were possible to be read. |
- Returns
- Should be a pointer to an array of numBytesRead bytes (uint8_t[numBytesRead]).
-
Optionally it could be 0 if the desired number of bytes could not be read.
Implemented in libwpg::WPGMemoryStream, WPGInternalInputStream, and libwpg::WPGFileStream.
virtual int WPXInputStream::seek |
( |
long |
offset, |
|
|
WPX_SEEK_TYPE |
seekType |
|
) |
| |
|
pure virtual |
Moves to the next location inside the input stream.
- Parameters
-
offset | The offset of the location inside the input stream to move to. It is relative either to the current position or to the beginning of the input stream depending on the value of the seekType parameter. |
seekType | Determines whether the offset is relative to the beginning of the input stream (WPX_SEEK_SET ) or to the current position (WPX_SEEK_CUR ). |
- Returns
- An integer value that should be 0 (zero) if the seek was successful and any other value if it failed (i.e. the requested
offset
is beyond the end of the input stream or before its beginning).
Implemented in libwpg::WPGMemoryStream, libwpg::WPGFileStream, and WPGInternalInputStream.
virtual long WPXInputStream::tell |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file:
- /Users/ale/src/Scribus/scribus/third_party/wpg/WPXStream.h