|
libcdoc 0.1.8
|
#include <Io.h>
Inherits libcdoc::DataSource.
Public Member Functions | |
| ChainedSource (DataSource *src, bool take_ownership) | |
| ~ChainedSource () | |
| result_t | read (uint8_t *dst, size_t size) |
| read bytes from input object | |
| bool | isError () |
| check whether DataConsumer is in error state | |
| bool | isEof () |
| check whether DataConsumer is reached to the end of data | |
Public Member Functions inherited from libcdoc::DataSource | |
| DataSource ()=default | |
| virtual | ~DataSource ()=default |
| virtual result_t | seek (size_t pos) |
| set stream input pointer | |
| virtual std::string | getLastErrorStr (result_t code) const |
| get textual description of the last error | |
| result_t | skip (size_t size) |
| skip specified number of bytes | |
| result_t | readAll (DataConsumer &dst) |
| read all data and writes to output object | |
| DataSource (const DataSource &)=delete | |
| DataSource & | operator= (const DataSource &)=delete |
Protected Attributes | |
| DataSource * | _src |
| bool | _owned |
|
inline |
References _owned, _src, and libcdoc::DataSource::DataSource().
|
inlinevirtual |
check whether DataConsumer is reached to the end of data
Reimplemented from libcdoc::DataSource.
References _src.
|
inlinevirtual |
check whether DataConsumer is in error state
Reimplemented from libcdoc::DataSource.
References _src.
|
inlinevirtual |
read bytes from input object
The following invariant holds:
| dst | the destination block |
| size | the number of bytes to read |
Reimplemented from libcdoc::DataSource.
References _src.
|
protected |
Referenced by ChainedSource(), and ~ChainedSource().
|
protected |
Referenced by ChainedSource(), isEof(), isError(), read(), and ~ChainedSource().