|
StatusObject< size_t > | Read (const strings::MutableByteRange &range) |
| Reads source into mutable range. More...
|
|
void | Prepend (const strings::ByteRange &range) |
|
Definition at line 98 of file sinksource.h.
◆ Read()
StatusObject< size_t > util::Source::Read |
( |
const strings::MutableByteRange & |
range | ) |
|
Reads source into mutable range.
- Returns
- StatusObject<size_t> containing error Status if an error has happenned. Returns number of read bytes if status is ok. If bytes read is smaller than range.size() then source reached EOF.
Definition at line 19 of file sinksource.cc.
◆ ReadInternal()
virtual StatusObject<size_t> util::Source::ReadInternal |
( |
const strings::MutableByteRange & |
range | ) |
|
|
protectedpure virtual |
ReadInternal actually reads the data and is called by Read(). ReadInternal may return less than range.size(), Read takes care of it and makes sure that range is fully filled if possible.
The documentation for this class was generated from the following files: