A stream representing a view into an another stream. More...
#include <EBOOKStreamView.h>
Public Member Functions | |
EBOOKStreamView (librevenge::RVNGInputStream *stream, long begin, long end) | |
~EBOOKStreamView () override | |
bool | isStructured () override |
unsigned | subStreamCount () override |
const char * | subStreamName (unsigned id) override |
bool | existsSubStream (const char *name) override |
librevenge::RVNGInputStream * | getSubStreamByName (const char *name) override |
RVNGInputStream * | getSubStreamById (unsigned id) override |
const unsigned char * | read (unsigned long numBytes, unsigned long &numBytesRead) override |
int | seek (long offset, librevenge::RVNG_SEEK_TYPE seekType) override |
long | tell () override |
bool | isEnd () override |
Private Member Functions | |
EBOOKStreamView (const EBOOKStreamView &other) | |
EBOOKStreamView & | operator= (const EBOOKStreamView &other) |
Private Attributes | |
librevenge::RVNGInputStream *const | m_stream |
const long | m_begin |
const long | m_end |
A stream representing a view into an another stream.
The purpose of this class is only to simplify reading of chunks of data from the original stream. All reading operations change the original stream. That means that it is not advisable to use the original stream while a view into it is in use too.
|
private |
libebook::EBOOKStreamView::EBOOKStreamView | ( | librevenge::RVNGInputStream * | stream, |
long | begin, | ||
long | end ) |
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
|
private |
|
override |
|
override |
|
override |
|
override |
|
override |
|
private |
Referenced by EBOOKStreamView(), read(), seek(), and tell().
|
private |
Referenced by EBOOKStreamView(), isEnd(), read(), and seek().
|
private |
Referenced by EBOOKStreamView(), isEnd(), read(), seek(), and tell().