void rili::stream::BufferingReadable::consume |
( |
std::size_t |
size | ) |
|
|
overridevirtual |
consume remove given number of bytes from front of view
- Parameters
-
size | number of bytes to remove |
Implements rili::stream::Readable.
virtual std::exception_ptr rili::stream::BufferingReadable::fetch |
( |
view::Default & |
view | ) |
|
|
protectedpure virtual |
fetch used by BufferingReadable to retrieve data from sink. It should be implemented in way which insert to view data avaliable in sink so far
- Parameters
-
view | is view which should be modified |
- Returns
- operation error exception if occured.
- Note
- implementation is not abligated to insert any data to view if no data avaliable
std::exception_ptr rili::stream::BufferingReadable::pull |
( |
std::size_t |
count | ) |
|
|
overridevirtual |
pull used to pull from stream underlying sink at least given number of bytes
- Parameters
-
count | number of bytes to retrieve from sink |
- Returns
- error exception if occured
- Note
- implementation of this function do not should provide at least count number of bytes to view.
-
count equal to 0 means implementation should provide zero or more bytes to view and implementation should choose easiest amount to provide.
Implements rili::stream::Readable.
view::Base const& rili::stream::BufferingReadable::readableView |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following file:
- rili/stream/BufferingStream.hpp