#include <Io.h>
Inherits libcdoc::DataSource.
◆ ChainedSource()
libcdoc::ChainedSource::ChainedSource |
( |
DataSource * |
src, |
|
|
bool |
take_ownership |
|
) |
| |
|
inline |
◆ ~ChainedSource()
libcdoc::ChainedSource::~ChainedSource |
( |
| ) |
|
|
inline |
◆ isEof()
bool libcdoc::ChainedSource::isEof |
( |
| ) |
|
|
inlinevirtual |
◆ isError()
bool libcdoc::ChainedSource::isError |
( |
| ) |
|
|
inlinevirtual |
◆ read()
result_t libcdoc::ChainedSource::read |
( |
uint8_t * |
dst, |
|
|
size_t |
size |
|
) |
| |
|
inlinevirtual |
read bytes from input object
The following invariant holds:
- if there is neither error nor eof then result == size
- if there is no errors but end of stream is reached then 0 <= result <= size
- if there is error then result < 0
- Parameters
-
dst | the destination block |
size | the number of bytes to read |
- Returns
- the number of bytes read or error code
Reimplemented from libcdoc::DataSource.
◆ _owned
bool libcdoc::ChainedSource::_owned |
|
protected |
◆ _src
The documentation for this struct was generated from the following file: